Logtalk reference manual
Built-in predicate: threaded_wait/1

threaded_wait/1

Description

threaded_wait(Term)

Suspends the thread making the call until a notification is received that unifies with Term. The call must be made within the same object (this) containing the calls to the threaded_notify/1 predicate that will eventually send the notification.

Template and modes

threaded_wait(?term)

Errors

(none)

Examples

Wait until the data_avaialble notification is received:
threaded_wait(data_avaialble)