Package io.ktor.network.selector

Types

ActorSelectorManager

class ActorSelectorManager : 
    SelectorManagerSupport,
    Closeable,
    CoroutineScope

Default CIO selector manager implementation

InterestSuspensionsMap

class InterestSuspensionsMap

SelectInterest

enum class SelectInterest

Select interest kind

Selectable

interface Selectable : Closeable, DisposableHandle

A selectable entity with selectable NIO channel, interestedOps subscriptions

SelectorManager

interface SelectorManager

Selector manager is a service that manages NIO selectors and selection threads

SelectorManagerSupport

abstract class SelectorManagerSupport : SelectorManager

Base class for NIO selector managers

Functions

buildOrClose

fun <C : Closeable, R> SelectorManager.buildOrClose(
    create: SelectorProvider.() -> C,
    setup: C.() -> R
): R

Creates a NIO entity via create and calls setup on it. If any exception happens then the entity will be closed and an exception will be propagated.