Skip to content

Commit

Permalink
Replace deprecated offer with trySend (#70)
Browse files Browse the repository at this point in the history
Co-authored-by: Cedrick Cooke <development@cedrickc.net>
  • Loading branch information
twyatt and cedrickcooke authored Jul 6, 2021
1 parent 8373a3f commit 1c1547e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public fun broadcastReceiverFlow(
val broadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (intent != null) {
offer(intent)
trySend(intent)
}
}
}
Expand Down

0 comments on commit 1c1547e

Please sign in to comment.