Hi! How how would you go about creating an `actor`...
# coroutines
f
Hi! How how would you go about creating an
actor
of buffer 1 that DROPS_OLD when the buffer is overflown. I’ve read the docs but I’m not sure I get it Is this it?
Copy code
actor<Int>(capacity = Channel.CONFLATED)
Requests a conflated channel in the Channel(...) factory function. This is a shortcut to creating a channel with onBufferOverflow = DROP_OLDEST.
What I don’t get from that is… how big is the buffer to begin with
ok I did some testing, looks like the buffer capacity is 1