Package io.ktor.network.selector

Types

ActorSelectorManager
Link copied to clipboard
class ActorSelectorManager(context: CoroutineContext) : SelectorManagerSupport, Closeable, CoroutineScope
Default CIO selector manager implementation
ClosedChannelCancellationException
Link copied to clipboard
common
class ClosedChannelCancellationException : CancellationException
InterestSuspensionsMap
Link copied to clipboard
class InterestSuspensionsMap
Selectable
Link copied to clipboard
common
interface Selectable
A selectable entity with selectable NIO channel, interestedOps subscriptions.
interface Selectable : Closeable, DisposableHandle
interface Selectable
SelectInterest
Link copied to clipboard
common
enum SelectInterest : Enum<SelectInterest>
Select interest kind
enum SelectInterest : Enum<SelectInterest>
Select interest kind
posix
enum SelectInterest : Enum<SelectInterest>
Select interest kind
SelectorManager
Link copied to clipboard
common
interface SelectorManager : CoroutineScope, Closeable
SelectorManager interface allows Selectable wait for SelectInterest.
interface SelectorManager : CoroutineScope, Closeable
Selector manager is a service that manages NIO selectors and selection threads
posix
interface SelectorManager : CoroutineScope, Closeable
SelectorManagerSupport
Link copied to clipboard
abstract class SelectorManagerSupport : SelectorManager
Base class for NIO selector managers
SocketError
Link copied to clipboard
posix
class SocketError

Functions

buildOrClose
Link copied to clipboard
inline fun <C : Closeable, R> SelectorManager.buildOrClose(create: SelectorProvider.() -> C, setup: C.() -> R): R
Creates a NIO entity via create and calls setup on it.
SelectorManager
Link copied to clipboard
common
fun SelectorManager(dispatcher: CoroutineContext = EmptyCoroutineContext): SelectorManager
Creates the selector manager for current platform.
fun SelectorManager(dispatcher: CoroutineContext = EmptyCoroutineContext): SelectorManager