Hello! I'm playing around with the new context rec...
# eap
t
Hello! I'm playing around with the new context receivers prototype (really exciting!) and I've hit a little snag with function references. I'm trying to run a function of the following type:
suspend context(Foo, Bar) () -> Unit
, however its
.invoke
method is requiring two arguments, one for each receiver. The thing is: I explicitly have the receiver for one of them, but the other one is also a context receiver of the callee, so it isn't available as
this
. Is there any way I can call this function? Thank you!
e
this@Foo
,
this@Bar
?
a
Note: #eap is not the right channel for general questions, it’s probably better to ask in #getting-started
t
@ephemient that is not an option, according to IntelliJ. @Alexey Belkov [JB] oh my bad! thought context receivers were still a EAP thing