( pullSignal: Writable<number>, pullAtom: Atom<PullResult<A, E>> )
| 1348 | ) |
| 1349 | |
| 1350 | const makeStreamPull = <A, E>( |
| 1351 | pullSignal: Writable<number>, |
| 1352 | pullAtom: Atom<PullResult<A, E>> |
| 1353 | ) => |
| 1354 | writable(pullAtom.read, function(ctx, _) { |
| 1355 | ctx.set(pullSignal, ctx.get(pullSignal) + 1) |
| 1356 | }) |
| 1357 | |
| 1358 | /** |
| 1359 | * Creates a memoized atom factory that returns the same object for the same argument, using weak references for cached values when the platform supports them. |