async-interop / event-loop

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

Resolve #142 by adding a run() method #145

Closed bwoebi closed 7 years ago

bwoebi commented 7 years ago

As per: https://github.com/async-interop/event-loop/pull/142#issuecomment-275927251

Also adding a shutdown function at the end in order to ensure that the loop level will be correct (i.e. people able to use Loop::run() in a shutdown function).

\cc @davidwdan @trowski @mbonneau

kelunik commented 7 years ago

It seems like this doesn't actually solve anything. People can just use Loop::execute(function () {}, Loop::get()); and get the same result?

kelunik commented 7 years ago

Can we close this one?