Closed fgmacedo closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
79546a5
) to head (95eb438
). Report is 41 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
3.1% Duplication on New Code
This PR changes the internals of the library. All the inner code becomes async with a thin sync wrapper.
This allows support for native coroutines, as expected in #388, also allows awaiting any event handler. A developer can mix sync and async callbacks freely, like using a web framework like
FastAPI
.Milestones:
Examples
Async Air Conditioner machine
A StateMachine that exercises reading from a stream of events.
Note the new API
sm.async_send()
in contrast with the current syncsm.send()
.Testing
Async Order Control
Note the new API for async trigger an event
sm.async_<event_name>()
in contrast with the current syncsm.<event_name>()
.Testing