native_synchronization_temp

Dart pub package

This experimental package provides native Mutex, ConditionVariable, and Mailbox primitives for Dart isolates. It is maintained in the onepub-dev/native_synchronization fork and published as native_synchronization_temp.

The package derives from the Dart team's native_synchronization project. The two packages have separate releases. Check this fork's changelog for fixes to its timeout and mailbox APIs.

Keep the owning objects alive until all isolates using their Sendable handles have finished. A sendable handle borrows the underlying native allocation.

Libraries

exceptions
mailbox
native_synchronization
primitives
This library contains native synchronization primitives such as Mutex and ConditionVariable implemented on top of low-level primitives provided by the OS.
sendable