pub fn block_on<T>(
future: impl Future<Output = Result<T, HostError>> + 'static,
) -> Result<T, HostError>Expand description
run a future synchronously: the sync api (parseSync()). a pending host promise is an error, like the typescript
sync functions that do not await