WorkerBuilder host(String name, function)

Source

WorkerBuilder host(String name, function) {
  if (function is ExecutableFunction) {
    function = (_) => function();
  }

  hosts[name] = function;
  return this;
}