1 ! Copyright (C) 2004, 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: concurrency.promises models tools.walker kernel
4 sequences concurrency.messaging locals continuations
5 threads namespaces namespaces.private assocs accessors ;
8 :: test-walker ( quot -- data )
9 [let | p [ <promise> ] |
15 [ drop ] [ p fulfill ] if
17 ] show-walker-hook set
22 ] "Walker test" spawn drop
29 variables>> walker-continuation swap at