proxmox/proxmox-async/src
Max Carrara 1f351625a5 async: runtime: Modernise module and update docs
This commit updates all helper functions, taking into account recent
developments regarding `tokio`.

In particular, the `block_in_place()` and `block_on()` functions now
don't panic anymore if used within the single-threaded `tokio` runtime
and instead behave as expected in both runtime flavours.

Furthermore, because `tokio` may add more runtime flavours in the
future, all helpers will now panic if used within an unsupported
runtime. This is to prevent unforeseen behavioural quirks and
interactions with `tokio` internals.

The above changes make `BlockingGuard` redundant; it is consequently
removed.

The documentation is also updated, describing the behaviour of the
helper functions and the purpose of the `runtime.rs` module in more
detail.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
2023-08-23 09:51:52 +02:00
..
blocking proxmox-async: add SenderWriter helper 2022-04-12 14:05:14 +02:00
io move io error helpers to proxmox-lang 2022-02-21 13:35:14 +01:00
net proxmox_async: move io::udp to net::udp 2022-02-02 12:54:39 +01:00
stream proxmox-async: rustfmt (again) 2022-02-08 14:52:42 +01:00
broadcast_future.rs proxmox_async: rustfmt 2022-02-02 12:55:01 +01:00
lib.rs split out compression code into new crate 'proxmox-compression' 2022-02-21 14:10:53 +01:00
runtime.rs async: runtime: Modernise module and update docs 2023-08-23 09:51:52 +02:00