async-interop / event-loop

An event loop interface for interoperability in PHP.
MIT License
169 stars 9 forks source link

Validity scope of defer() and once() watcher ids #70

Closed bwoebi closed 8 years ago

bwoebi commented 8 years ago

When exactly becomes a defer()/once() watcher id invalid? Before the callback call (as you anyway cannot do meaningful disable/enable on it inside the callback) or only after it?

This needs to be specified in the Driver interface.

kelunik commented 8 years ago

I'd say before.

WyriHaximus commented 8 years ago

I'd also say before.

joshdifabio commented 8 years ago

I agree with before.

bwoebi commented 8 years ago

Good, that's fine. I'll do a simple PR documenting that soon.