示例#1
0
func (actor *ActorAWrap) Init(isSync bool) error {
	if isSync {
		return koalanet.Call(actor.Handle, "Init", nil, nil)
	}

	return koalanet.Send(actor.Handle, "Init", nil)
}
示例#2
0
func (actor *ActorAWrap) MethodB(isSync bool) error {
	if isSync {
		return koalanet.Call(actor.Handle, "MethodB", nil, nil)
	}

	return koalanet.Send(actor.Handle, "MethodB", nil)
}
示例#3
0
func (actor *MainActorWrap) MethodA(isSync bool, args ArgsSend) error {
	if isSync {
		return koalanet.Call(actor.Handle, "MethodA", args, nil)
	}

	return koalanet.Send(actor.Handle, "MethodA", args)
}
示例#4
0
func (actor *ActorAWrap) MethodA(isSync bool, reply *int) error {
	if isSync {
		return koalanet.Call(actor.Handle, "MethodA", nil, reply)
	}

	return koalanet.Send(actor.Handle, "MethodA", nil)
}