How to do a list of consumers? Via `typealias`? ``...
# announcements
v
How to do a list of consumers? Via
typealias
?
Copy code
typealias Consumer<T> = (T) -> Unit
callbacks = listOf<Consumer<MyType>>()
k
Yeah or just inline that type,
listOf<(MyType) -> Unit>()
v
😲 interesting. I'd better inline, thanks for the hint