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
// https://nodejs.org/api/events.html | |
const EventEmmiter = require("events"); | |
const eventEmmiter = new EventEmmiter(); | |
const cooking = async ({ name }) => ({ name }); | |
const driveTo = async () => true; | |
const leave = async () => ({ delivered: true }); | |
async function cook({ pizzaOrder, user }) { | |
console.log(`Cooking a ${pizzaOrder.name}`); |