https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

Pardeep Sharma

02/01/2023, 3:08 AM
Hello Team, I have a suspend function named 'build' that returns Either<Model, Error> and I'm this using member reference as: val res = builder::build where 'res' type = KSuspendFunction0<Either<Model, ApiError>> However, I am expecting 'res' type should be: KSuspendFunction0*<Model?,* <Either<Model, Error>>> whereas, in a normal scenario when I am calling: val res = builder.build() the 'res' type is as expected as Either<Model, Error>. Am I missing something?
e

ephemient

02/01/2023, 3:14 AM
https://kotlinlang.org/community/slackccugl.html
Please refrain from crossposting the same message on multiple channels. It is considered spamming.
8 Views