Update method name and partially document platform crate

co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Mikayla
2024-01-17 14:07:57 -08:00
co-authored by Nathan
parent 7a299e966a
commit 9eecda2dae
10 changed files with 38 additions and 32 deletions
+2 -1
View File
@@ -109,9 +109,10 @@ type AnyFuture<R> = Pin<Box<dyn 'static + Send + Future<Output = R>>>;
/// BackgroundExecutor lets you run things on background threads.
/// In production this is a thread pool with no ordering guarantees.
/// In tests this is simalated by running tasks one by one in a deterministic
/// In tests this is simulated by running tasks one by one in a deterministic
/// (but arbitrary) order controlled by the `SEED` environment variable.
impl BackgroundExecutor {
#[doc(hidden)]
pub fn new(dispatcher: Arc<dyn PlatformDispatcher>) -> Self {
Self { dispatcher }
}