code_junkie

Working with Seaside continuations

Nov 11th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. continuation := nil.
  2. result := Continuation currentDo: [:cc |
  3. "store the continuation, cc, somewhere for later use"
  4. continuation := cc.
  5. 1 ].
  6.  
  7. Transcript show: result.
  8.  
  9. continuation value: 2
  10.  
  11. continuation value: 3
Add Comment
Please, Sign In to add comment