Skip to content

Conversation

NathanBaulch
Copy link
Contributor

This is the first step in the async/await refactoring discussed in #1439. I was planning to submit all the work in a single PR but it's a wide reaching change that would be very time consuming to code review. Better to make the async transition in a few more manageable steps.

@love-linger
Copy link
Collaborator

This PR will not be merged until version 2025.25 has been released.

@love-linger love-linger self-assigned this Jul 2, 2025
@love-linger love-linger added the enhancement New feature or request label Jul 2, 2025
@love-linger
Copy link
Collaborator

I think the function name ResultAsync is not quite appropriate.

  • For the Result interface that returns bool or int, it can be changed to GetAsync().
  • For the Result interface that returns complex-type data, it can be changed to ReadAsync().

@love-linger love-linger changed the base branch from develop to feature/async July 2, 2025 13:15
@love-linger love-linger merged commit 4522860 into sourcegit-scm:feature/async Jul 2, 2025
13 checks passed
@love-linger
Copy link
Collaborator

Please do not create anthor PR until reviewing complete in feature/async branch

@NathanBaulch
Copy link
Contributor Author

Can I continue working in the feature/async branch of my fork?

love-linger pushed a commit that referenced this pull request Jul 3, 2025
* Async command methods
* Async `Task.Run` where possible
* Remove redundant `Task.Run` in `Sure` methods
* Remove leftover braces and reformat
* Async event handlers as needed
love-linger pushed a commit that referenced this pull request Jul 3, 2025
* Async command methods
* Async `Task.Run` where possible
* Remove redundant `Task.Run` in `Sure` methods
* Remove leftover braces and reformat
* Async event handlers as needed
love-linger added a commit that referenced this pull request Jul 3, 2025
- Remove all synchronous method in commands
- `Command.ReadToEndAsync` now is protected method
- Rename `ResultAsync` to `GetResultAsync`
- Call `ConfigureAwait(false)` when there's no context

Signed-off-by: leo <[email protected]>
@love-linger
Copy link
Collaborator

I've decided to directly merge the feature/async into the develop branch. If it's convenient for you, could you help do more testing?

@NathanBaulch
Copy link
Contributor Author

Sure, I'll play with it tomorrow.

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

Successfully merging this pull request may close these issues.

2 participants