Exemple #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)
}
Exemple #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)
}
Exemple #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)
}
Exemple #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)
}