Skip to content

Releases: revoltphp/event-loop

0.2.2

20 Feb 17:38
v0.2.2
Compare
Choose a tag to compare

What's Changed

  • Fixed memory leak with suspensions keeping a reference to fibers (#42, #52)
    Similar leaks might still happen if suspensions are never resumed, so ensure your suspensions are eventually resumed.

New Contributors

Full Changelog: v0.2.1...v0.2.2

0.2.1

03 Feb 19:07
v0.2.1
985d239
Compare
Choose a tag to compare

What's Changed

  • Added template type to Suspension by @trowski in #44
  • Added FiberLocal::unset() by @kelunik in #45
  • Added stacktrace to all current suspensions on early exit of the event loop by @kelunik in #46

Full Changelog: v0.2.0...v0.2.1

0.2.0

14 Jan 17:53
v0.2.0
db42a2a
Compare
Choose a tag to compare

This release is mostly backwards compatible with v0.1.x.

What's Changed

  • Add FiberLocal to store data specific to each fiber, e.g. logging context (#40)
  • Throw UnhandledThrowable if event loop stops due to an exception (#32)
  • Reduce fiber switches by queueing callbacks for each tick (#34)
  • Avoid creating unnecessary fibers if exceptions are thrown from callbacks
  • Add EventLoop::getErrorHandler() to get the currently set error handler
  • Remove return value of EventLoop::setErrorHandler(), use EventLoop::getErrorHandler() instead
  • Remove default value for first argument of EventLoop::setErrorHandler() (#30)
  • Cache suspensions and always return the same value for a specific fiber (#37)
    • EventLoop::getSuspension() has been added as replacement for EventLoop::createSuspension()
    • EventLoop::createSuspension() has been deprecated and will be removed in the next version
  • Fix multiple interrupts on double resumption leading to an assertion error instead of an exception (#41)
  • Fix suspensions keeping their pending state after the event loop exceptionally stopped

Full Changelog: v0.1.1...v0.2.0

0.1.1

10 Dec 00:58
v0.1.1
Compare
Choose a tag to compare

What's Changed

  • Fixed exceptions being hidden if the event loop stopped due to an uncaught exception by @bwoebi in #31

New Contributors

Full Changelog: v0.1.0...v0.1.1

0.1.0

01 Dec 22:03
v0.1.0
498362a
Compare
Choose a tag to compare

Initial development release.