We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e54ba3 commit 7874fd7Copy full SHA for 7874fd7
src/index.js
@@ -244,7 +244,7 @@ export class BlockstoreDatastoreAdapter extends BaseBlockstore {
244
245
// process.nextTick runs on the microtask queue, setImmediate runs on the next
246
// event loop iteration so is slower. Use process.nextTick if it is available.
247
- const runner = process && process.nextTick ? process.nextTick : setImmediate
+ const runner = globalThis.process && globalThis.process.nextTick ? globalThis.process.nextTick : (globalThis.setImmediate || globalThis.setTimeout)
248
249
runner(async () => {
250
try {
0 commit comments