Snackbar: SnackbarDispatcher.post does not need to be suspend.
This commit is contained in:
parent
d909bb0c3d
commit
1ecb704e24
4 changed files with 6 additions and 10 deletions
|
|
@ -36,7 +36,7 @@ class SnackbarDispatcher {
|
|||
}
|
||||
}
|
||||
|
||||
suspend fun post(message: SnackbarMessage) {
|
||||
fun post(message: SnackbarMessage) {
|
||||
if (snackBarMessageQueue.isEmpty()) {
|
||||
snackBarMessageQueue.add(message)
|
||||
if (queueMutex.isLocked) queueMutex.unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue