89a64f8c3b
This PR makes `ConcurrentQueue::unbounded` a const function. It'd be great if `bounded` could be `const` as well, but this would likely require static memory allocation support in const functions, which is currently not allowed by the compiler. This would enable https://github.com/smol-rs/async-executor/pull/112 to be directly constructable in a const context (i.e. static/thread_local variable initialization without OnceLock). It might also allow unbounded `async_channel`s to be constructed in a similar context. Co-authored-by: Taiki Endo <te316e89@gmail.com> |
||
---|---|---|
.. | ||
bounded.rs | ||
lib.rs | ||
single.rs | ||
sync.rs | ||
unbounded.rs |