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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async command support #19

Merged
merged 3 commits into from Mar 8, 2018
Merged

Conversation

Pondidum
Copy link
Contributor

@Pondidum Pondidum commented Feb 2, 2018

  • Changed commands to be async internally, and OaktonCommand's private implementation of IOaktonCommand to use Task.FromResult(Execute((T)input)).
  • New base class for commands (OaktonAsyncCommand<T>).
  • Add documentation 馃槺
  • I didn't add a CancellationToken to the method as I couldn't see a clean way of providing a token, and cancelling it on ctrl+c usage

Only thing I am not sure on is what version number to set in the rakefile, as I changed the IOakonCommand's definition it should be 2.0.0 I guess? Although from a typical user's perspective, 1.4.1 would make sense as people only really inherit OaktonCommand<T>.

@jeremydmiller
Copy link
Member

@Pondidum Ugh, I'm sorry. This slipped by me or I totally forgot about it. I'll try to get this reviewed and hopefully out tomorrow.

@jeremydmiller jeremydmiller merged commit 81f6cb9 into JasperFx:master Mar 8, 2018
@Pondidum
Copy link
Contributor Author

Pondidum commented Mar 8, 2018

No worries, I know how busy you are!

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.

None yet

2 participants