dave08
10/11/2023, 6:36 AMinterface MessageReceiver {
operator fun <T : Any> invoke(
subject: String,
queue: String? = null,
type: KClass<T>,
block: suspend (T) -> Unit
)
}
inline operator fun <reified T : Any> MessageReceiver.invoke(
subject: String,
queue: String? = null,
noinline block: suspend (T) -> Unit
) = invoke(subject, queue, T::class, block)
and neither Intellij nor Fleet know how to import the second one automatically... I keep on having to write the import myself... is there any way to get this to auto-import?xoangon
10/11/2023, 6:53 PMList
or CoroutineScope
factory functions)dave08
10/12/2023, 6:39 AMKlitos Kyriacou
10/12/2023, 8:58 AMdave08
10/12/2023, 8:59 AM'inline' modifier is not allowed on virtual members. Only private or final members can be inlined
...xoangon
10/12/2023, 9:03 AMinterface
for an abstract class
?dave08
10/12/2023, 9:08 AMKlitos Kyriacou
10/12/2023, 9:15 AMdave08
10/12/2023, 9:23 AM