mintaka-types 0.0.4

Mintaka Types
Documentation
1
2
3
4
5
6
7
8
9
10
// Copyright (c) Tribufu. All Rights Reserved.

use std::future::Future;
use std::pin::Pin;

#[cfg(not(target_arch = "wasm32"))]
pub type BoxedFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;

#[cfg(target_arch = "wasm32")]
pub type BoxedFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;