next up previous contents
Next: Property: waitfor Up: Message Properties Previous: Property: priority

Property: delay

The delay property is used to send a message with a given delay. It takes as arguments the delay duration in milliseconds. The property is usually used as a loose timer. For instance, the following message awaken will be sent to the actor, book, after a delay of 1s.
 
// The message awaken() will be delivered to Actor book
//  after a delay of 1 second.
book<-awaken():delay(new Integer(1000)); 
 
   


Wei-Jen Wang
2007-11-28