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. |