Skip to content

Added shell and timeout, killSignal options to spawn functions #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

initprism
Copy link

Description of the change

child_process.spawn supports shell and timeout, killSignal options
The shell implementation was referenced at #29 (comment).


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

Comment on lines +269 to +270
, shell :: Maybe String
, timeout :: Maybe Number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The types for these probably aren't quite ideal - I'd suggest using Milliseconds for timeout, and shell perhaps needs a new sum type that covers the true argument. I've actually never used anything but true, thought it was a mistake here until I checked the node docs!

@JordanMartinez
Copy link
Contributor

Superceded by #46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants