Last active
March 30, 2020 09:20
-
-
Save mig35/abe0bec1565ce03b305607358ec411c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class ConcurrentStrategy : ExecutionStrategy { | |
override fun shouldAddToPendingActions( | |
pendingActionCommands: RemoveOnlyList<ActionCommand<*, *>>, | |
runningActionCommands: List<ActionCommand<*, *>> | |
): Boolean = | |
true | |
override fun shouldBlockOtherTask(pendingActionCommand: ActionCommand<*, *>): Boolean = | |
false | |
override fun shouldExecuteAction( | |
pendingActionCommands: RemoveOnlyList<ActionCommand<*, *>>, | |
runningActionCommands: List<ActionCommand<*, *>> | |
): Boolean = | |
true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment