Last active
September 12, 2018 14:00
-
-
Save deque-blog/5ec7902d44491bf6dfe6f83cba9ab535 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
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