How can this done?


#1

how can one ask for input from REPL (STDIN), waiting for some time then return any way if there is no input??


#2

I answered a similar question here:


#3

Dear @adamslc
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.


#4

Instead of asking for input, just write functions for the user to call and pass in arguments.


#5

@dpsanders i want a default behavior in absence of a user who supposed to input to REPL.


#6

In what kind of application or context?


#7

during receiving input from REPL.
thanks.


#8

If you’re receiving input from the repl, then there must be a user controlling everything, no?


#9

i want to give the user a time frame to respond else a default will apply.