usagi
0.0.4-SNAPSHOT
common
usagi
/
dimensional.usagi.channel.consumer
/
Consumer
Consumer
data
class
Consumer
(
val
channel
:
Channel
,
val
tag
:
String
)
Types
Constructors
Functions
Properties
Extensions
Constructors
Consumer
Link copied to clipboard
fun
Consumer
(
channel
:
Channel
,
tag
:
String
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
cancel
Link copied to clipboard
suspend
fun
cancel
(
noWait
:
Boolean
=
false
)
Cancel this consumer.
wait
Link copied to clipboard
suspend
fun
wait
(
)
Suspends until this consumer has been cancelled.
wait
Async
Link copied to clipboard
fun
waitAsync
(
)
:
Deferred
<
Unit
>
Properties
channel
Link copied to clipboard
val
channel
:
Channel
deliveries
Link copied to clipboard
val
deliveries
:
SharedFlow
<
Delivery
>
scope
Link copied to clipboard
val
scope
:
CoroutineScope
tag
Link copied to clipboard
val
tag
:
String
Extensions
for
Each
Link copied to clipboard
inline
fun
Consumer
.
forEach
(
scope
:
CoroutineScope
=
this.scope
,
noinline
block
:
suspend
(
Delivery
)
->
Unit
)
:
Job