Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ categories = ["asynchronous", "concurrency"]
exclude = ["/.*"]

[dependencies]
async-lock = "3.0.0"
async-task = "4.0.0"
concurrent-queue = "2.0.0"
fastrand = "2.0.0"
futures-lite = { version = "2.0.0", default-features = false }
once_cell = "1.18.0"
slab = "0.4.4"

[dev-dependencies]
Expand All @@ -30,7 +30,6 @@ easy-parallel = "3.1.0"
event-listener = "3.0.0"
fastrand = "2.0.0"
futures-lite = "2.0.0"
once_cell = "1.16.0"

[[bench]]
name = "executor"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::{Arc, Mutex, RwLock, TryLockError};
use std::task::{Poll, Waker};

use async_lock::OnceCell;
use async_task::Runnable;
use concurrent_queue::ConcurrentQueue;
use futures_lite::{future, prelude::*};
use once_cell::sync::OnceCell;
use slab::Slab;

#[doc(no_inline)]
Expand Down Expand Up @@ -263,7 +263,7 @@ impl<'a> Executor<'a> {

/// Returns a reference to the inner state.
fn state(&self) -> &Arc<State> {
self.state.get_or_init_blocking(|| Arc::new(State::new()))
self.state.get_or_init(|| Arc::new(State::new()))
}
}

Expand Down