Created
October 31, 2020 21:59
-
-
Save Yamo93/a2c2843f70063ed3d6050cea7848e07e to your computer and use it in GitHub Desktop.
Pseudo code for pub-sub pattern
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
const subscribers = { | |
onUserUpdate: [callbackFunction, anotherCallbackFunction], | |
onUserLogin: [callbackFunction, anotherCallbackFunction] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment