Availability:built-in
- deadline(+AbsTime)
- The call fails (silently) if no space has become available before AbsTime. See get_time/1 for the representation of absolute time. If AbsTime is earlier then the current time, thread_send_message/3 fails immediately. Both resolution and maximum wait time is platform-dependent.162The implementation uses MsgWaitForMultipleObjects() on MS-Windows and pthread_cond_timedwait() on other systems.
- timeout(+Time)
- Time is a float or integer and specifies the maximum time to
wait in seconds. This is a relative-time version of the
deadline
option. If both options are provided, the earlier time is effective.If Time is 0 or 0.0, thread_send_message/3 examines the queue and sends the message if space is availabel, but does not suspend if no space is available, failing immediately instead.
If Time < 0, thread_send_message/3 fails immediately without sending the message.