Skip to main content

Module platform

Module platform 

Source
Expand description

Platform-adaptive concurrency primitives.

Provides type aliases for cross-platform concurrency primitives:

  • Native: parking_lot (multi-threaded)
  • WASM: RefCell/Cell (single-threaded worker)

Designed for future migration to SharedArrayBuffer when Rust wasm atomics stabilize.

Functions§

counter_next

Type Aliases§

Counter
Lock