Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ internal class CommandBuffer : NavigatorHolder {
navigator = null
}

override fun clearPendingCommands() {
pendingCommands.clear()
}

/**
* Passes `commands` to the [Navigator] if it available.
* Else puts it to the pending commands queue to pass it later.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ interface NavigatorHolder {
* Remove the current Navigator and stop receive commands.
*/
fun removeNavigator()

/**
* Clear pending commands.
*/
fun clearPendingCommands()
}