(
create: ((get: AtomContext) => Stream.Stream<A, E, AtomRegistry>) | Stream.Stream<A, E, AtomRegistry>,
options?: {
readonly disableAccumulation?: boolean | undefined
}
)
| 1263 | * @since 4.0.0 |
| 1264 | */ |
| 1265 | export const pull = <A, E>( |
| 1266 | create: ((get: AtomContext) => Stream.Stream<A, E, AtomRegistry>) | Stream.Stream<A, E, AtomRegistry>, |
| 1267 | options?: { |
| 1268 | readonly disableAccumulation?: boolean | undefined |
| 1269 | } |
| 1270 | ): Writable<PullResult<A, E>, void> => { |
| 1271 | const pullSignal = removeTtl(state(0)) |
| 1272 | const pullAtom = readable(makeRead(function(get) { |
| 1273 | return makeStreamPullEffect(get, pullSignal, create, options) |
| 1274 | })) |
| 1275 | return makeStreamPull(pullSignal, pullAtom) |
| 1276 | } |
| 1277 | |
| 1278 | const makeStreamPullEffect = <A, E>( |
| 1279 | get: AtomContext, |
nothing calls this directly
no test coverage detected