1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 03:49:03 +02:00

actix-rt: Add Arbiter::is_running helper and fix System::is_set doc

`Arbiter::is_running` can be used to check if the current even-loop is currently
running; which should also work after the system has stopped. `System::is_set`
was updated to reflect what it actually does, it tells if the event loop has
started, which alone can't tell if it has stopped.

Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
This commit is contained in:
Jonathas-Conceicao
2020-04-04 19:05:08 -03:00
committed by Jonathas Conceição
parent 69e8df9d62
commit 783880bb0a
4 changed files with 25 additions and 2 deletions

View File

@ -2,7 +2,11 @@
## [TBD] - [TBD]
- Expose `System::is_set` to check if current system is running
Added
- Expose `System::is_set` to check if current system has ben started
- Add `Arbiter::is_running` to check if event loop is running
- Add `Arbiter::local_join` associated function to get be able to `await` for spawned futures