diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-13 16:26:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 16:26:46 -0500 |
commit | 9cfb533c83cb350b66217cdcaea13ad7760f57e2 (patch) | |
tree | 636407ce46fa4dfe8c2197beaf53d84ef3c8398d /src | |
parent | f986eb25c575747efddcbbcbd8ab429a32312983 (diff) |
Check that IsolateState is thread safe. (#1321)
Diffstat (limited to 'src')
-rw-r--r-- | src/isolate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/isolate.rs b/src/isolate.rs index 2305a62a9..4d5b92d58 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -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>(); + } } |