Esempio n. 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)
}
Esempio n. 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)
}
Esempio n. 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)
}
Esempio n. 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)
}