///|
/// Build the host from its stored factory and run it with the console driver
/// on native and js, starting the `moonbitlang/core/async` event loop and
/// ending the process with the run's exit code.
pub fn[S] run(
  builder : @hosting.HostBuilder[S],
  command : @hosting.Hook[S],
) -> Unit {
  let host = @hosting.build_ready(builder)
  @async.run_async_main(() => @hosting_console.run(host, command))
}