mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
15 lines
286 B
Rust
15 lines
286 B
Rust
extern crate futures;
|
|||
|
|
extern crate tokio_sync;
|
||
|
|
|
||
|
|
use futures::task::Task;
|
||
|
|
use tokio_sync::task::AtomicTask;
|
||
|
|
|
||
|
|
trait AssertSend: Send {}
|
||
|
|
trait AssertSync: Send {}
|
||
|
|
|
||
|
|
impl AssertSend for AtomicTask {}
|
||
|
|
impl AssertSync for AtomicTask {}
|
||
|
|
|
||
|
|
impl AssertSend for Task {}
|
||
|
|
impl AssertSync for Task {}
|