(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| * IoC (Inversion o Control) Computation Expression | |
| */ | |
| function ioc(fn) { | |
| assert(isGeneratorFunction(fn), 'The argument `fn` must be a GeneratorFunction.'); | |
| run.mflow_generatorFunction = fn; | |
| return run; | |
| public class TaskExample { | |
| public void execute() { | |
| // RV alice: Plz give fancier name than `foo'! | |
| // bob: Why? `foo' sounds perfect. | |
| // alice: It's just too anonymous. | |
| String foo = "wtf"; | |
| System.out.println(foo); | |
| } |