Experimental
Creates an async computed signal in Alien Signals. The getter is an async generator that yields dependencies and finally resolves to a computed value.
The type of the computed value.
An async generator returning dependencies and ultimately a value.
The created async computed signal.
const asyncComp = createAsyncComputed<number>(async function* () { yield someDependency; return 42;}); Copy
const asyncComp = createAsyncComputed<number>(async function* () { yield someDependency; return 42;});
Creates an async computed signal in Alien Signals. The getter is an async generator that yields dependencies and finally resolves to a computed value.