@@ 0,0 1,34 @@
This is a [fiber scheduler](https://docs.ruby-lang.org/en/3.1/Fiber/SchedulerInterface.html) for Ruby 3.0+ that uses EventMachine, allowing integration with projects that already use EventMachine.
If you are starting a new project and have no EventMachine-based dependencies, consider [fiber_scheduler](https://github.com/bruno-/fiber_scheduler) instead.
**NOTE:** fiber schedulers are per-thread settings. This scheduler may **only** be used on the EventMachine reactor thread.
## Reactor Lifecycle
By default, `EM::FiberScheduler` will start the EventMachine reactor for you, and also stop it when all work is complete. If any connection or server is still open, that will be considered work that is not yet complete. If you want to disable the autostart do this:
If you want to start EventMachine yourself but want the autostop behaviour, do this: