concurrent-queue/src
James Liu 89a64f8c3b
feat: Make unbounded a const function
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>
2024-04-13 09:01:26 -07:00
..
bounded.rs feat: Add an overflow push method 2024-03-30 16:38:05 -07:00
lib.rs feat: Make unbounded a const function 2024-04-13 09:01:26 -07:00
single.rs feat: Add an overflow push method 2024-03-30 16:38:05 -07:00
sync.rs ci: Test loom under no-default-features 2024-03-31 11:09:52 -07:00
unbounded.rs feat: Make unbounded a const function 2024-04-13 09:01:26 -07:00