Skip to content

Callbacks instead of event listeners? #362

@barocsi

Description

@barocsi

according to the example https://github.com/argon/node-apn/blob/master/examples/sending-to-multiple-devices.js you are sending notifications to multiple devices but cannot tell when the sending of all devices is finished (of course using counters and other methods can be employed)

Would it not be better to use callbacks (err,result) paradigm or at least promises built in? So it would be best integrated with node-async for example.

This way we need to keep track of notifications that are returned in the event listeners argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions