static function async($f, $lazy = null) { if ($lazy === null) { $lazy = false; } if ($lazy) { return tink_core__Future_Future_Impl_::flatten(tink_core__Future_Future_Impl_::lazy(tink_core__Lazy_Lazy_Impl_::ofFunc(tink_core__Future_Future_Impl__8($f, $lazy)))); } else { $op = new tink_core_FutureTrigger(); call_user_func_array($f, array(isset($op->trigger) ? $op->trigger : array($op, "trigger"))); return $op->future; } }
static function flatMap($this1, $f) { return tink_core__Lazy_Lazy_Impl_::ofFunc(array(new _hx_lambda(array(&$f, &$this1), "tink_core__Lazy_Lazy_Impl__2"), 'execute')); }