pub async fn run(
client: Client,
settings: LeaseSettings,
leader: Arc<Atomic<bool>>,
gained: Arc<Notify>,
)Available on crate feature
gateway-api only.Expand description
Hold or follow the Lease forever; leader says which, gained fires
when this replica becomes the leader (so it can reconcile at once).