sindresorhus / p-queue

Promise queue with concurrency control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can not run on react-native project

lovetingyuan opened this issue · comments

this lib can not be used in react native project,

ERROR TypeError: undefined is not a function, js engine: hermes

transform of the private class field has something wrong

	#onInterval(): void {
		if (this.#intervalCount === 0 && this.#pending === 0 && this.#intervalId) {
			clearInterval(this.#intervalId);
			this.#intervalId = undefined;
		}

		this.#intervalCount = this.#carryoverConcurrencyCount ? this.#pending : 0;
		this.#processQueue();
	}

this.#processQueue(); is not a function, hermes engine can not handle the transplied code

You need to open an issue on Hermes instead. This package uses normal JS syntax.