how can one ask for input from REPL (STDIN), waiting for some time then return any way if there is no input??
I answered a similar question here:
i ask for a some how different thing.
if there is no input (a user to interact) after some time. return with a default value then.
Instead of asking for input, just write functions for the user to call and pass in arguments.
In what kind of application or context?
during receiving input from REPL.
If you’re receiving input from the repl, then there must be a user controlling everything, no?
i want to give the user a time frame to respond else a default will apply.