[go-nuts] Re: syscall/js (wasm): Wrapped func, goroutines, GOMAXPROCS, mutex necessity?

2022-07-02 Thread atd...@gmail.com
Addendum: for the bottom question, I would expect the goroutines launched to be scheduled right after the initial callback/wrapped func returns unless there is a blocking operation in which case the scheduler might run them earlier. I also do not know if the goroutines would run in a given order

[go-nuts] syscall/js (wasm): Wrapped func, goroutines, GOMAXPROCS, mutex necessity?

2022-07-02 Thread atd...@gmail.com
Hi, I just have a quick question. I am using callbacks that run Go code to modify a Go-wasm datastructure. These callbacks are essentially Wrapped Go Funcs called from js. Reading the docs, I've realized that each callback runs in its own goroutine. Now, I'm wondering if I should protect access