Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit 7bc86e4

Browse files
committed
Expose nextTick for API parity with abstract-leveldown
1 parent e2e2c34 commit 7bc86e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/levelup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ LevelUP.prototype.toString = function () {
325325

326326
LevelUP.prototype.type = 'levelup'
327327

328+
// Expose nextTick for API parity with abstract-leveldown
329+
LevelUP.prototype._nextTick = nextTick
330+
328331
function maybeError (db, callback) {
329332
if (!db.isOperational()) {
330333
nextTick(callback, new ReadError('Database is not open'))

0 commit comments

Comments
 (0)