fun open(executor: Executor = Executors.newSingleThreadExecutor(DEFAULT_THREAD_FACTORY), loggerProvider: LoggerProvider = LoggerProvider.nullProvider(), selectTimeout: Long = 1000, idleTimeout: Long = 10000): CoroutineSelector
(source)
Open a co-routine selector.
executor
- An executor for obtaining a thread to run the selection loop.
loggerProvider
- A provider for logger instances.
selectTimeout
- The maximum time the selection operation will wait before checking for closed channels.
idleTimeout
- The minimum idle time before the selection loop of the selector exits.
Return
A co-routine selector.