veloren/network
Marcel Märtens 9028578bc8 Change the way Network is dropped.
Instead of keeping Runtime and manually spawn a task on `drop` this task is spawned at start and will wait to be triggered.
The `drop` methods then wait for completion, UNLESS they are in a async context, then they MUST NOT BLOCK (deadlock potential), so they defer it to the Runtime and HOPE for the runtime to exist long enough.
This get rid of the weird `block_in_place` which is only accessable with `rt-multi-threaded` and has some disadvantages.
We also wont requiere the runtime to be active all the time. Though its needed for a clean shutdown
2021-03-03 11:28:40 +01:00
..
benches Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
examples Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
protocol Client::new can now resolve DNS requests, better networking error messages 2021-02-22 17:35:19 +01:00
src Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
tests Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
Cargo.toml Update Network Protocol 2021-02-22 17:34:55 +01:00