1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

Check that IsolateState is thread safe. (#1321)

This commit is contained in:
Ryan Dahl 2018-12-13 16:26:46 -05:00 committed by GitHub
parent f986eb25c5
commit 9cfb533c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -547,4 +547,10 @@ mod tests {
let op = Box::new(futures::future::ok(vec));
(false, op)
}
#[test]
fn thread_safety() {
fn is_thread_safe<T: Sync + Send>() {}
is_thread_safe::<IsolateState>();
}
}