This is a bit heavyweight. It could be made lighter if we add tokio support to our nif but that could also be a big lift. Wasmex is also attempting that: https://github.com/tessi/wasmex/pull/462
I think this needs some more discussion before we choose a path. Related to #3
We can't really support host functions in elixir because a NIF cannot synchronously call Elixir code. The easiest way would be to add something like this: https://github.com/tessi/wasmex/issues/256#issuecomment-848339952
This is a bit heavyweight. It could be made lighter if we add tokio support to our nif but that could also be a big lift. Wasmex is also attempting that: https://github.com/tessi/wasmex/pull/462
I think this needs some more discussion before we choose a path. Related to #3