o arise) or memory is exhausted.
</p>
<p>Here is an example of the use of await-task-in-thread-pool!:
</p><div class="example">
<pre class="example">(set-default-event-loop!) ;; if none has yet been set
(let ((pool (make-thread-pool #:max-threads 4)))
  (event-loop-block! #t) ;; because the task runs in another thread
  (a-sync (lambda (await resume)
	    (simple-format #t &quot;1 + 1 is ~A\n&quot;
			   (await-task-in-thread-pool! await resume
						       pool
						       (lambda ()
							 (+ 1 1))))
	 