Skip to content

Instantly share code, notes, and snippets.

@motorro
Created August 14, 2022 14:38
Show Gist options
  • Save motorro/8a999c502d097c7d32af71724f2ce315 to your computer and use it in GitHub Desktop.
Save motorro/8a999c502d097c7d32af71724f2ce315 to your computer and use it in GitHub Desktop.
Bound machine
/**
* Common state machine
* @param G UI gesture
* @param U UI state
*/
interface CommonStateMachine<G: Any, U: Any> : MachineInput<G>, MachineOutput<G, U>
/**
* Common state-machine state
* @param G UI gesture
* @param U UI state
*/
open class CommonMachineState<G: Any, U : Any>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment