You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are considering simplifying the Balancer interface to be just a Claimer function. And the balancer code will be its own function, since in practice we only have one implementation of balancer but many types of claimers.
A possible interface could be: type Claimer func(ctx BalancerContext, task string) bool This could also make the decorator pattern even easier to use with Claiming tasks.
The text was updated successfully, but these errors were encountered:
We are considering simplifying the
Balancer
interface to be just aClaimer
function. And the balancer code will be its own function, since in practice we only have one implementation of balancer but many types of claimers.A possible interface could be:
type Claimer func(ctx BalancerContext, task string) bool
This could also make the decorator pattern even easier to use with Claiming tasks.The text was updated successfully, but these errors were encountered: