4 ms·
Isn't that glue going to fall apart when you start working with asynchronous methods? I might be suffering from tunnel vision, but IMO this is asking for an eve
by ricardobeat 14y ago
Isn't that glue going to fall apart when you start working with asynchronous methods? I might be suffering from tunnel vision, but IMO this is asking for an evented model:
class Glue
constructor: (@useCase, @gui, @storage)->
@useCase.on
askForName : @gui.showAskForName
nameProvided : @gui.hideAskForName
greetUser : @gui.showGreetMessage
restart : @gui.hideGreetMessage
@gui.on
restartClicked : @useCase.restart
confirmName : @useCase.nameProvided
- yashke 14y agoWe use Around in such cases - it can put original method call to callback of asynchronous method.