What is the equivalent of `kotlin.native.concurren...
# webassembly
a
What is the equivalent of
kotlin.native.concurrent.Worker
or
Thread
for
kotlin/wasi
in the
kotlin-stdlib
?? Do we have any??
s
Kotlin/Wasm is single threaded. Threads could be added in the future. They would need: • Core WebAssembly proposal https://github.com/WebAssembly/shared-everything-threads. • WASI proposal https://github.com/WebAssembly/wasi-threads Both are now in a very early stage.
a
I see. So, is there any equivalent of
Promise/Deffered/CompletableFuture
in
Kotlin/Wasm - wasi
(not Kotlin/Wasm - wasmJs)??
s
There will be
stream
and
future
in WASI Preview 3. See this great presentation with a lot of tech details.
👍 1
a
Thank you so much