chore: improve documentation

This commit is contained in:
Michael Aaron Murphy 2023-08-15 10:51:59 +02:00 committed by Michael Murphy
parent 0c57ec7446
commit a387adcb1b
10 changed files with 37 additions and 24 deletions

View file

@ -1,14 +1,18 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
//! Select the preferred async executor for an application.
#[cfg(feature = "tokio")]
pub mod multi;
#[cfg(feature = "tokio")]
pub mod single;
/// Uses the single thread executor by default.
#[cfg(not(feature = "tokio"))]
pub type Default = iced::executor::Default;
/// Uses the single thread executor by default.
#[cfg(feature = "tokio")]
pub type Default = single::Executor;

View file

@ -1,6 +1,8 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
//! An async executor that schedules tasks across a pol ofbackground thread.
use std::future::Future;
#[cfg(feature = "tokio")]

View file

@ -1,6 +1,8 @@
// Copyright 2023 System76 <info@system76.com>
// SPDX-License-Identifier: MPL-2.0
//! An async executor that schedules tasks on the same background thread.
use std::future::Future;
#[cfg(feature = "tokio")]