summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-13 16:26:46 -0500
committerGitHub <noreply@github.com>2018-12-13 16:26:46 -0500
commit9cfb533c83cb350b66217cdcaea13ad7760f57e2 (patch)
tree636407ce46fa4dfe8c2197beaf53d84ef3c8398d /src
parentf986eb25c575747efddcbbcbd8ab429a32312983 (diff)
Check that IsolateState is thread safe. (#1321)
Diffstat (limited to 'src')
-rw-r--r--src/isolate.rs6
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>();
+ }
}