Object.notifyAll Method [AX 2012]
Releases a lock on the object that was issued by the wait method on this object.
The following example demonstrates the usage of the notifyAll method.
public void doWork()
{
//Do some work.
this.setTimeOut(identifierstr(workerFunction), 0);
this.wait(); // block and wait for notify.
}
public void workerFunction()
{
// Do some work.
//...
// Work is done. Notify an unblock.
this.notify();
}
Community Additions
ADD
Show: