import { ObservableInput, from, Observable } from "rxjs" import { SUSPENSE } from "@react-rxjs/core" import { defaultStart } from "./internal-utils" /** * A RxJS creation operator that prepends a SUSPENSE on the source observable. * * @param source$ Source observable */ export const suspend: ( source$: ObservableInput, ) => Observable = (source$: ObservableInput) => defaultStart(SUSPENSE)(from(source$)) as any