Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Stream Method is asynchronous but without Async suffix #899

Closed
AhmedAbuelnour opened this issue Sep 16, 2017 · 4 comments
Closed

Stream Method is asynchronous but without Async suffix #899

AhmedAbuelnour opened this issue Sep 16, 2017 · 4 comments
Assignees
Milestone

Comments

@AhmedAbuelnour
Copy link

Stream Method is asynchronous but without Async suffix in its name, it should be StreamAsync

@davidfowl
Copy link
Member

Which Stream method?

@AhmedAbuelnour
Copy link
Author

HubConnection connection = hubConnectionBuilder.WithUrl(url).Build();

await connection.Stream<>("", "");
I think it should be
await connection.StreamAsync<>("", "");

@davidfowl
Copy link
Member

davidfowl commented Sep 16, 2017

It's not async though. It returns a ReadableChannel<T>. It could be made async but that would require a code change.

Do you want to submit a pull request?

@davidfowl davidfowl self-assigned this Sep 17, 2017
@davidfowl davidfowl added this to the 1.0.0-alpha2 milestone Sep 17, 2017
davidfowl added a commit that referenced this issue Sep 17, 2017
- Before we were fire and forgetting the invocation that initiated
the streaming, this changes that so that the caller now has to await
to get the channel.

#899
@AhmedAbuelnour
Copy link
Author

Yes, it would make more sense to be async

davidfowl added a commit that referenced this issue Sep 18, 2017
* Turned Stream into StreamAsync
- Before we were fire and forgetting the invocation that initiated
the streaming, this changes that so that the caller now has to await
to get the channel.

#899
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants