Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/pear/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ The versions of runtimes.

### `Pear.teardown(fn <Async Function|Function>)`

Register application clean-up handlers to be called when an application begins to unload.
Register application clean-up handlers to be called when an application begins to unload. The returned promise resolves when the teardown callback is executed and containse the returned value. If no `fn` is provided, the promise for the last callback will be returned.

May be called multiple times to register multiple teardown handlers.

Functions supplied to teardown will be executed in order of registration when
an application begins to unload. Any promise returned from each supplied function
will be waited upon until resolution before calling the next teardown handler.

### Pear.reload()
### `Pear.reload()`

Refresh application in Desktop applications. Not available in terminal
applications.
Expand Down