User Tools

Site Tools


at:byexample

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
at:byexample [2008/08/11 20:33] – * tvcutsemat:byexample [2008/08/11 20:34] – * tvcutsem
Line 10: Line 10:
 import /.at.lang.futures; import /.at.lang.futures;
  
-when: lightbulb<-toggleLight()@Due(seconds(10)) becomes: { |lightStatus|+when: lightbulb<-toggleLight()@Due(seconds(10)) becomes: { |reply|
   // code to execute when the light bulb switched on   // code to execute when the light bulb switched on
   // lightStatus refers to the return value of the   // lightStatus refers to the return value of the
at/byexample.txt · Last modified: 2009/10/08 14:11 by tvcutsem