dle-add: see the introductory remarks about
that.
</p>
<p>Here is an example of the use of await-glib-task-in-thread:
</p><div class="example">
<pre class="example">(define main-loop (g-main-loop-new #f #f))
(a-sync (lambda (await resume)
	  (simple-format #t &quot;1 + 1 is ~A\n&quot;
			 (await-glib-task-in-thread await resume
						    (lambda ()
						      (+ 1 1))))
	  (g-main-loop-quit main-loop)))
(g-main-loop-run main-loop)
</pre></div>
</dd></dl>

<dl class="def">
<dt id="index-await_002dglib_002dt