From 61da1fed26086377e9dd386d34ab23d654a151cb Mon Sep 17 00:00:00 2001 From: Vivek Singh <47470314+heyitsvi@users.noreply.github.com> Date: Thu, 9 May 2024 18:19:23 +0530 Subject: [PATCH] add pear exit (#107) --- reference/pear/api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reference/pear/api.md b/reference/pear/api.md index 8572c14..35e0ad5 100644 --- a/reference/pear/api.md +++ b/reference/pear/api.md @@ -362,6 +362,10 @@ will be waited upon until resolution before calling the next teardown handler. Restart the application. +### `Pear.exit(code)` + +Exits the process with the provided exit code. + ### `Pear.updates(listener ) => streamx.Readable` The `listener` function is called for every incoming update with an `update` object of the form: