Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

fix: prompt timeout #35

Merged
merged 2 commits into from
Jun 1, 2018
Merged

fix: prompt timeout #35

merged 2 commits into from
Jun 1, 2018

Conversation

RasPhilCo
Copy link
Contributor

No description provided.

@RasPhilCo RasPhilCo requested a review from jdx June 1, 2018 17:44
@codecov
Copy link

codecov bot commented Jun 1, 2018

Codecov Report

Merging #35 into master will increase coverage by 0.41%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   42.59%   43.01%   +0.41%     
==========================================
  Files          13       13              
  Lines         277      279       +2     
  Branches       60       60              
==========================================
+ Hits          118      120       +2     
  Misses        136      136              
  Partials       23       23
Impacted Files Coverage Δ
src/prompt.ts 65% <100%> (+1.84%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51c6bf5...a9e81ca. Read the comment docs.

src/prompt.ts Outdated
resolve(data || options.default)
}
})
setTimeout(() => reject(), options.timeout || 10000)
Copy link
Contributor

Choose a reason for hiding this comment

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

can't you just change this line to setTimeout(() => reject(), options.timeout || 10000).unref()?

@RasPhilCo RasPhilCo merged commit 1fd35fb into master Jun 1, 2018
@RasPhilCo RasPhilCo deleted the prompt-timeout-fix branch June 1, 2018 18:09
oclif-bot added a commit that referenced this pull request Jun 1, 2018
<a name="4.6.1"></a>
## [4.6.1](v4.6.0...v4.6.1) (2018-06-01)

### Bug Fixes

* unref prompt timeout ([#35](#35)) ([1fd35fb](1fd35fb))
@oclif-bot
Copy link
Contributor

🎉 This PR is included in version 4.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants