Permalink
Browse files

document state events

  • Loading branch information...
1 parent ee7175d commit 3c2c360870dc9d917fe27a363b72023b6bd65776 @dominictarr dominictarr committed Jan 8, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -363,8 +363,10 @@ LevelUP emits events when the callbacks to the corresponding methods are called.
* `db.emit('put', key, value)` emitted when a new value is `'put'`
* `db.emit('del', key)` emitted when a value is deleted
* `db.emit('batch', ary)` emitted when a batch operation has executed
-* `db.emit('ready')` emitted when the database has opened
+* `db.emit('ready')` emitted when the database has opened `'open'` is synonym.
* `db.emit('closed')` emitted when the database has closed
+* `db.emit('opening')` emitted when the database is opening
+* `db.emit('closing')` emitted when the database is closing
If you do not pass a callback to an async function, and there is an error, LevelUP will `emit('error', err)` instead.

0 comments on commit 3c2c360

Please sign in to comment.