Macro: SB-EXT:WAIT-FOR

package type

Wait until TEST-FORM evaluates to true, then return its primary value. If TIMEOUT is provided, waits at most approximately TIMEOUT seconds before returning NIL.

If WITH-DEADLINE has been used to provide a global deadline, signals a DEADLINE-TIMEOUT if TEST-FORM doesn’t evaluate to true before the deadline.

Experimental: subject to change without prior notice.

Lambda list

(sb-thread::test-form &key sb-thread::timeout)