aws_smithy_async/future/
mod.rs

1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6//! Useful runtime-agnostic future implementations.
7
8use futures_util::Future;
9use std::pin::Pin;
10
11pub mod never;
12pub mod now_or_later;
13pub mod pagination_stream;
14pub mod rendezvous;
15pub mod timeout;
16
17/// A boxed future that outputs a `Result<T, E>`.
18pub type BoxFuture<'a, T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'a>>;