-
I have done some experiments about supporting runtimes via ZSTs, and the result is quite satisfying.
The idea is to pass runtimes as generic arguments, instead of variables, to avoid unnecessary dyna…
-
When different targets use different features of a create, RA considers all of them active at the same time.
Cargo.toml:
```toml
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
poll…
-
I was attempting to return nice error responses for certain errors. For example i'd like to return a 408 when a timeout occurs. However it seems to also close the socket.
While testing this out I ran…
-
Hi! I'm interested in using this library. However, as someone who hasn't done concurrency in rust before, I'm not quite sure how to get started.
The main docs page has this example:
```rust
async…
-
There are many areas of friction around async runtimes, lets try and smooth things out!
Some things that I'm aware of:
* Be able to write `async fn main` and async tests without a proc macro (th…
-
I get `AddressSanitizer: attempting free on address which was not malloc` with the following code:
Error is reproducible in [Godbolt](https://godbolt.org/z/9T8sonvhd)
It doesn't happen if we remove …
-
示例
***server.cpp***
```cpp
#include
#include
#include "kcp.hpp"
constexpr uint8_t connect_key[32] = { 49, 194, 61, 231, 161, 216, 31, 60, 230, 26, 13, 25, 211, 185, 93, 67, 118, 28, 49, 22…
-
Hello,
I am trying to use the execute polling method on a connection, but the compiler keeps saying that the connection is not send, even though I promoted it to send.
This is the error
```
er…
-
If one accidentally uses `std::sync::Mutex` in asynchronous code and holds a `MutexGuard` across an await, then the future is marked `!Send`, and you can't spawn it off to run on another thread - all …
-