fromSync
import { fromSync } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async.ts";Convert a synchronous computation to an asynchronous one.
@example
import { fromSync } from "./async.ts";
import { wrap } from "./sync.ts";
const sync = wrap(() => "Hello");
const async = fromSync(sync);
const result = await async(); // "Hello"