Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Process events handling API #14

Open
sazarkin opened this issue Nov 16, 2018 · 0 comments
Open

Process events handling API #14

sazarkin opened this issue Nov 16, 2018 · 0 comments

Comments

@sazarkin
Copy link

sazarkin commented Nov 16, 2018

Can we add a bindings for process.on() ? https://nodejs.org/api/process.html

Something like this:

[@bs.send.pipe: Node.Process.t]
external on :
  (
  [@bs.string]
  [
    | `unhandledRejection(string => unit)
    | `SIGINT(unit => unit)
    | `SIGTERM(unit => unit)
  ]
  ) =>
  Node.Process.t =
  "";
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant