Continuation2

class Continuation2<T1, T2>(block: (p1: T1, p2: T2) -> Unit, invoker: CPointer<CFunction<(COpaquePointer?) -> Unit>>, singleShot: Boolean = false) : Function2<T1, T2, Unit> (source)

Since Kotlin

1.3

Constructors

Link copied to clipboard
fun <T1, T2> Continuation2(block: (p1: T1, p2: T2) -> Unit, invoker: CPointer<CFunction<(COpaquePointer?) -> Unit>>, singleShot: Boolean = false)

Functions

Link copied to clipboard
fun dispose()
Since Kotlin 1.3
Link copied to clipboard
open operator override fun invoke(p1: T1, p2: T2)
Since Kotlin 1.3

Extensions

Link copied to clipboard
@ExperimentalReflectionOnLambdas
fun <R> Function<R>.reflect(): KFunction<R>?

This is an experimental API. Given a class for a compiled Kotlin lambda or a function expression, returns a KFunction instance providing introspection capabilities for that lambda or function expression and its parameters. Not all features are currently supported, in particular KCallable.call and KCallable.callBy will fail at the moment.

Since Kotlin 1.0