3 ms·
It's often for code that is asynchronous that will not return an answer immediately... the function passing is most often used to send a callback for these situ
by tracker1 8y ago
It's often for code that is asynchronous that will not return an answer immediately... the function passing is most often used to send a callback for these situations.
- jononor 8y agoA state-machine, generator or coroutine can be used instead of callbacks. I mostly prefer only having one direction of who-calls-who when combining multiple languages. Though I understand that for a general purpose system like Wasmer it makes sense to support everything, so that users can choose the architecture.