Skip to content

Later

The later() function creates a subscribable, allowing you to subscribe to the results of asynchronous operations.

ts
import { 
later
} from "@postact/core";
const
$data
=
later
<string>(() => {
return new
Promise
((
resolve
) => {
setTimeout
(() =>
resolve
("boo!"), 100);
}) });