(chunkKey: string)
| 71 | const makeChunkKey = (cursor: Cursor, afterInclusive = false) => |
| 72 | JSON.stringify([cursor, afterInclusive]); |
| 73 | const parseChunkKey = (chunkKey: string) => { |
| 74 | const [cursor, afterInclusive] = JSON.parse(chunkKey) as [Cursor, boolean]; |
| 75 | return { cursor, afterInclusive }; |
| 76 | }; |
| 77 | |
| 78 | // Chunk sub key is used to create keys to keep track of the subscriptions |
| 79 | // while chunk maps are keyed by [cursor, afterInclusive], we still distinguish |
no outgoing calls
no test coverage detected