bytecodealliance / lucet

Lucet, the Sandboxing WebAssembly Compiler.
Apache License 2.0
4.06k stars 165 forks source link

📨 Make `InstanceHandle::run_async_start()` future impl `Send` #623

Closed acfoltzer closed 3 years ago

acfoltzer commented 3 years ago

Also adds a test to ensure that both run_async() and run_async_start() impl Send.

cfallin commented 3 years ago

(And also: the closure capture rules are very subtle; sorry about the troubles with the original version!)

acfoltzer commented 3 years ago

No worries at all. This is definitely not the first time this has happened where we only realize something's not Send when we try to integrate downstream.