Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 12, 2018 14:00
Embed
What would you like to do?
newWorkerState = %{ worker | # Update worker state
clock: worker.clock + 1, # - increment clock by one
eventLog: [logEntry | worker.eventLog] # - prepend log entry to event log
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment