veloren/network/examples
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
..
fileshare Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
network-speed Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
chat.rs Change the way Network is dropped. 2021-03-03 11:28:40 +01:00
tcp_loadtest.rs Moved common networking code to common/net, clippy fixes 2020-12-13 17:23:45 +00:00