rawFromAny()
Normalizes any value into a raw callbag source that emits value(s) then completes.
Dispatch order:
- PromiseLike — delegates to
rawFromPromise - AsyncIterable — delegates to
rawFromAsyncIter - Iterable (non-string) — emits each element synchronously, then END
- Plain value — emits once, then END
Signature
ts
function rawFromAny<T>(
input: T | PromiseLike<T> | Iterable<T> | AsyncIterable<T>,
): CallbagSourceParameters
| Parameter | Type | Description |
|---|---|---|
input | `T | PromiseLike<T> |
Returns
A raw callbag source function.