Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a builder for arbiter + alive method #557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sytten
Copy link

@Sytten Sytten commented May 9, 2024

PR Type

Feature

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

Builder

This adds a builder for the arbiter, allowing more customization of the thread used by the arbiter.

The first customizable I added was the name, this allows us to differentiate the different arbiters better since they are not all used for the same purpose.

Alive

I also added an alive method on the arbiter so the caller can try to detect dead arbiters before sending it a future since it consumes it. Otherwise you need to have a clone future which is not good most of the time.

@Sytten Sytten requested a review from robjtede May 9, 2024 18:26
@Sytten Sytten changed the title Add a builder for arbiter Add a builder for arbiter + alive method May 10, 2024
@robjtede
Copy link
Member

robjtede commented May 14, 2024

LGTM from a quick look but needs a manual rebase (which I don't have perms to do on this PR).

@robjtede robjtede marked this pull request as draft June 20, 2024 00:05
@Sytten Sytten marked this pull request as ready for review October 28, 2024 02:57
@Sytten
Copy link
Author

Sytten commented Oct 28, 2024

@robjtede Sorry it took forever to rebase, its done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants