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

Changes dependant on targetting 6.0 #1055

Closed
6 of 9 tasks
MihaZupan opened this issue Jun 4, 2021 · 14 comments
Closed
6 of 9 tasks

Changes dependant on targetting 6.0 #1055

MihaZupan opened this issue Jun 4, 2021 · 14 comments
Labels
Type: Task A task that needs to be completed.
Milestone

Comments

@MihaZupan
Copy link
Member

MihaZupan commented Jun 4, 2021

List of known changes we should do in Yarp once adding a 6.0 target (and/or more convenient after dropping 3.1):

Feel free to add anything I may be missing

@MihaZupan MihaZupan added the Type: Task A task that needs to be completed. label Jun 4, 2021
@Kahbazi
Copy link
Collaborator

Kahbazi commented Jun 4, 2021

How about using Random.Shared in RandomFactory?

@Tratcher
Copy link
Member

Tratcher commented Jun 4, 2021

Note adding 6.0 support is independent from dropping 3.1 support. Are there any of these you think are prohibitive to #if light-up on 5.0 or 6.0 while still supporting 3.1?

@MihaZupan
Copy link
Member Author

For #770 we should just wait to drop 3.1. For others it's actually that we need 6.0.

@davidfowl
Copy link
Contributor

Just move the ifdefs to extension methods that noop, it'll keep the code clean. It's the technique we use in Pipelines and Channels in the BCL.

You could do the same with TryReset and assume it always returns false.

@karelz karelz added this to the Backlog milestone Jun 10, 2021
@Tratcher
Copy link
Member

Tratcher commented Jun 11, 2021

Fixed by #1271

@Kahbazi
Copy link
Collaborator

Kahbazi commented Aug 9, 2021

Use LoggerMessageAttribute.

@Kahbazi
Copy link
Collaborator

Kahbazi commented Aug 31, 2021

Use PeriodicTimer.

@WeihanLi
Copy link
Contributor

WeihanLi commented Sep 15, 2021

  • Use WaitAsync task timeout extensions instead of TimeoutAfter

@Tratcher Tratcher self-assigned this Oct 14, 2021
This was referenced Oct 19, 2021
@MihaZupan
Copy link
Member Author

@Kahbazi where are you suggesting we should use PeriodicTimer?

@Kahbazi
Copy link
Collaborator

Kahbazi commented Oct 19, 2021

@Kahbazi where are you suggesting we should use PeriodicTimer?

Here

_realTimer = new Timer(callback, state, dueTime, period);

@MihaZupan
Copy link
Member Author

We are only using this within EntityActionScheduler where the API surface is different from what PeriodicTimer offers.

@Kahbazi
Copy link
Collaborator

Kahbazi commented Oct 19, 2021

We are only using this within EntityActionScheduler where the API surface is different from what PeriodicTimer offers.

I assumed the overall performance might be better.

@MihaZupan
Copy link
Member Author

MihaZupan commented Nov 2, 2021

Now that we are targeting 6.0 and most items have been completed, I moved the remaining ones into separate issues (#1346 #1347 #770)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Task A task that needs to be completed.
Projects
None yet
Development

No branches or pull requests

6 participants