Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def send(purchase: Purchase): Unit =
- system.scheduler.scheduleOnce(100.milliseconds) {
- execute(purchase)
- }
- def execute(purchase: Purchase): Unit = {
- ... send email ...
- ... calculate stuff and write to DB ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement