Skip to content

0.2.0

Compare
Choose a tag to compare
@kelunik kelunik released this 14 Jan 17:53
· 52 commits to main since this release
v0.2.0
db42a2a

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