Skip to content

Commit

Permalink
fix: missing exports and use wrong undefined sleep()
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiYou-TW committed Mar 7, 2024
1 parent 2d41d26 commit be6fb4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lab2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class MailSystem {
send(name, context) {
console.log('--send mail to ' + name + '--');
// Interact with mail system and send mail
sleep(1000);
// random success or failure
const success = Math.random() > 0.5;
if (success) {
Expand Down Expand Up @@ -74,4 +73,9 @@ class Application {
// app.selectNextPerson();
// app.selectNextPerson();
// app.selectNextPerson();
// app.notifySelected();
// app.notifySelected();

module.exports = {
Application,
MailSystem,
};

0 comments on commit be6fb4a

Please sign in to comment.