var globalVar int32
func (a *activity) ActivityMethod(ctx context.Context) error {
// do something
globalVar = some_rando_value
return nil
}
If there are multiple activities running on same worker, i see that globalVar
is shared by all the activites.
Why is it so?