mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
1b355d8a87
Introduces a `SyncReadAsyncWriteLock` to make it harder to write to the npm resolution without first waiting async in a queue. For the npm resolution, reading synchronously is fine, but when updating, someone should wait async, clone the data, then write the data at the end back.
14 lines
423 B
Rust
14 lines
423 B
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
mod async_flag;
|
|
mod atomic_flag;
|
|
mod sync_read_async_write_lock;
|
|
mod task_queue;
|
|
mod value_creator;
|
|
|
|
pub use async_flag::AsyncFlag;
|
|
pub use atomic_flag::AtomicFlag;
|
|
pub use sync_read_async_write_lock::SyncReadAsyncWriteLock;
|
|
pub use task_queue::TaskQueue;
|
|
pub use task_queue::TaskQueuePermit;
|
|
pub use value_creator::MultiRuntimeAsyncValueCreator;
|