UNPKG

@schemeless/event-store-react-native

Version:

React Native compatible build of the [`@schemeless/event-store`](../event-store) runtime. It mirrors the Node.js implementation but swaps the internal queue implementation to [`react-native-better-queue`](https://github.com/YahyaASadiq/react-native-better

11 lines (10 loc) 403 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeApplyQueue = void 0; const RxQueue_1 = require("./RxQueue"); const randomSuffix = () => Math.random().toString(36).substring(2, 6).padEnd(4, '0'); const makeApplyQueue = () => (0, RxQueue_1.createRxQueue)('apply:' + randomSuffix(), { filo: true, concurrent: 1, }); exports.makeApplyQueue = makeApplyQueue;