You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently creating a simple command-line application that takes in a series (potentially infinite) of commands, and responds to each one at a time. I'd like this to look a bit like this:
prompt.start();
while(true) {
result = prompt.getSync();
if (result.command == 'quit') { exit(1); }
// do something with result
}
Would it be possible to create a version of result.get that would hold execution until a result is returned?
The text was updated successfully, but these errors were encountered:
I'm currently creating a simple command-line application that takes in a series (potentially infinite) of commands, and responds to each one at a time. I'd like this to look a bit like this:
Would it be possible to create a version of result.get that would hold execution until a result is returned?
The text was updated successfully, but these errors were encountered: