of the use of await-glib-generator-in-thread:
</p><div class="example">
<pre class="example">(define main-loop (g-main-loop-new #f #f))
(a-sync (lambda (await resume)
	  (await-glib-generator-in-thread await resume
					  (lambda (yield)
					    (let loop ((count 0))
					      (when (&lt; count 5)
						(yield (* 2 count))
						(loop (1+ count)))))
					  (lambda (val)
					    (display val)
					    (newline)))
	  (g-main-loop-quit main-loop)))
(g-main-loop-run main-loop)
</pre></div>
</dd></dl>

<dl cl