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.
threaded_wait(?term)
(none)
data_avaialble
notification is received:threaded_wait(data_avaialble)