Package-level declarations

Types

Link copied to clipboard
typealias BiFunction<InputA, InputB, Result> = suspend (InputA, InputB) -> Result

Represents a potentially suspendable operation that accepts two arguments and produces a result. Based on Java's BiFunction functional interface.

Link copied to clipboard

Similiar to BiFunction but additionally accepts a context as an extra argument.

Link copied to clipboard
typealias CtxFunction<Context, Input, Result> = suspend (Context, Input) -> Result

Similiar to Function but additionally accepts a context as an extra argument.

Link copied to clipboard
typealias CtxSupplier<Context, Result> = suspend (Context) -> Result

Similiar to Supplier but additionally accepts a context as an extra argument.

Link copied to clipboard
typealias Function<Input, Result> = suspend (Input) -> Result

Represents a potentially suspendable operation that accepts one argument and produces a result. Based on Java's Function functional interface.

Link copied to clipboard
typealias Supplier<Result> = suspend () -> Result

Represents a potentially suspendable operation that accepts no arguments and produces a result. Based on Java's Supplier functional interface.