oh my goodness, well my first run in with `operato...
# coroutines
g
oh my goodness, well my first run in with
operator fun invoke
confusion, kotlin coroutine code:
Copy 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
.
b
Kotlin has some very strong operators. I often find myself using Go To Declaration (Cmd/Ctrl+B) to discover where items came from
g
problem with
operator fun invoke
is that the thing you have to control-click on (ctrl+B on) is the parenthesis
b
It's the same as plus, minus, times, inc, get, or any other operator