Created
January 8, 2019 18:31
-
-
Save vuejsdevelopers/498781052b88e7680834a2f81351246b to your computer and use it in GitHub Desktop.
Bad UX in Web Apps that Perform Intensive Tasks (and How to Avoid it with Queues) - Snippet 08
This file contains hidden or 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
Queue::after(function (JobProcessed $event) { | |
$result = ... // get the job result from the DB | |
SendEmail::dispatch($event->data["email"], $result); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment