groostav
12/14/2018, 12:42 AMoperator fun invoke
confusion, kotlin coroutine code:
public fun <R> start(start: CoroutineStart, receiver: R, block: suspend R.() -> T) {
initParentJob()
start(block, receiver, this)
}
that start
call is actually start.invoke(block, receiver, this)
, it is not calling a superclass overload of start
.bdawg.io
12/14/2018, 12:44 AMgroostav
12/14/2018, 1:02 AMoperator fun invoke
is that the thing you have to control-click on (ctrl+B on) is the parenthesisbdawg.io
12/14/2018, 1:35 AM