Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

once / pausable #43

Closed
wants to merge 3 commits into from
Closed

once / pausable #43

wants to merge 3 commits into from

Conversation

bitpshr
Copy link
Member

@bitpshr bitpshr commented Jun 17, 2015

This PR includes implementations of once and pausable with basic tests as per #37.

@@ -104,3 +104,58 @@ export default function on(target: any, type: any, listener: any, capture?: bool

throw new TypeError('Unknown event emitter object');
}

/**
* Provides a mechanism for listening to the next occurence of events from event
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo (occurrence)

@bitpshr
Copy link
Member Author

bitpshr commented Jun 19, 2015

This should be ready for another review @kfranqueiro and @kitsonk. Thanks in advance.

@bitpshr bitpshr closed this in eaf7da0 Jun 19, 2015
@kfranqueiro
Copy link
Member

I decided to move the PausableHandle interface into on.ts since it's rather specific to one API in there. If we find another use for it we could move it into interfaces.d.ts as this PR originally proposed.

@dylans dylans added this to the Milestone 2 milestone Jan 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants