Changes between Version 17 and Version 18 of Clojure Client Tutorial


Ignore:
Timestamp:
Aug 3, 2011 5:24:42 PM (13 years ago)
Author:
kedwar10
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clojure Client Tutorial

    v17 v18  
    337337}}}
    338338
    339 Some time later while still exploring the maze...
    340 
    341 {{{
    342 client.core=> (future-done? q1)
    343 true
    344 client.core=> (future-done? q2)
    345 false
    346 }}}
    347 
    348 Looks like something went wrong with q1 (the server sometimes stops responding after many calls).  Fortunately this is no problem for the quagents as they can be restarted.
    349 
    350 {{{
    351 client.core=> (future-cancel q1)
    352 false
    353 client.core=> (def q1 (future (explore-maze :Bob)))
    354 #'client.core/q1
    355 }}}
    356 
    357 Try running these without the future call and note the difference. 
    358339
    359340Suppose now we need a more sophisticated behaviour whereby the quagent sends out a message to the server and then calls a function every