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:
parent
f986eb25c5
commit
9cfb533c83
1 changed files with 6 additions and 0 deletions
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue