Skip to content

Commit 0336256

Browse files
committed
Auto merge of rust-lang#105698 - joboet:unsupported_threads_once, r=thomcc
Use a more efficient `Once` on platforms without threads The current implementation uses an atomic queue and spins rather than panicking when calling `call_once` recursively. Since concurrency is not supported on platforms like WASM, `Once` can be implemented much more efficiently using just a single non-atomic state variable.
2 parents b730a6a + a633a76 commit 0336256

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)