Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.