chore: improve documentation
This commit is contained in:
parent
0c57ec7446
commit
a387adcb1b
10 changed files with 37 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue