receipt method
Implementation
@protected
void receipt(o, SendMessage m, [bool isError = false]) {
var sendHandle = m.sendHandle;
// 使用独立端口,如果可用
if (m.uniqueKey is SendHandle) sendHandle = m.uniqueKey as SendHandle;
if (o is Future) {
futureAutoSend(o, sendHandle, m);
} else if (o is Stream) {
streamSend(o, sendHandle, m);
} else if (!isError) {
objectSend(o, sendHandle, m);
}
if (isError) {
sendError(o, sendHandle, m);
onError(m, (o as (Object, StackTrace)).$1);
}
}