Skip to content

Instantly share code, notes, and snippets.

@mukeshsolanki
Created May 27, 2022 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mukeshsolanki/b6da293563013e5da0e281d416fe2a31 to your computer and use it in GitHub Desktop.
Save mukeshsolanki/b6da293563013e5da0e281d416fe2a31 to your computer and use it in GitHub Desktop.
private val currentDirection = mutableStateOf(SnakeDirection.Right)
var move = Pair(1, 0)
set(value) {
scope.launch {
mutex.withLock {
field = value
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment