Product Site

5.1.2.17. startWith

Sends the message with the specified arguments to start processing, while the sender also continues processing.

If target is specified, the message is sent to target and the receiving message object is changed to use the new target. Otherwise the message is sent to the target the message object provides.

The arguments array items are used as message arguments and the receiving message object is changed to use these new arguments.

This method returns as soon as possible and does not wait until message processing is complete.

Note that once a message object has been started with either the start or the startWith method, it can not be run with any of the send/sendWith, start/startWith, reply/replyWith methods again. A message object can be run multiple times with methods send/sendWith and reply/replyWith.

The notify method can be used to request notification that message processing is complete. When message processing is complete, the message object retains any result and holds it until requested via the result method.

See also