Skip to content

Instantly share code, notes, and snippets.

@dcantu476
Last active February 3, 2020 19:08
Show Gist options
  • Save dcantu476/a759e4b0ce869fa7f67800407d2f50be to your computer and use it in GitHub Desktop.
Save dcantu476/a759e4b0ce869fa7f67800407d2f50be to your computer and use it in GitHub Desktop.
Pizza Shop
const pizzaCookingSubject = new Subject();
build() {
// Do any steps to build a pizza
pizzaCookingSubject.next('Build Done');
}
bake() {
// Bake your pizza
pizzaCookingSubject.next('Baking Done');
}
box() {
// Box it up
pizzaCookingSubject.next('Boxing Done');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment