diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-07-13 15:16:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 15:16:24 -0600 |
commit | 8465bd0037acbaac0c7dfab6a8c6dbf47539934e (patch) | |
tree | c2ba7e1ba75a45ba552f40f7a09407674a890916 /test_ffi/tests/thread_safe_test.js | |
parent | c5ddb5f205dcd6b273b0b451f01f79b68621b2e4 (diff) |
chore: update to Rust 1.71 (#19822)
Diffstat (limited to 'test_ffi/tests/thread_safe_test.js')
-rw-r--r-- | test_ffi/tests/thread_safe_test.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test_ffi/tests/thread_safe_test.js b/test_ffi/tests/thread_safe_test.js index 41ab803be..fd5e1840c 100644 --- a/test_ffi/tests/thread_safe_test.js +++ b/test_ffi/tests/thread_safe_test.js @@ -84,7 +84,8 @@ const cleanupCallback = new Deno.UnsafeCallback( { parameters: [], result: "void" }, () => { console.log("Callback being called"); - queueMicrotask(() => cleanup()); + // Defer the cleanup to give the spawned thread all the time it needs to properly shut down + setTimeout(() => cleanup(), 100); }, ); |