-
Notifications
You must be signed in to change notification settings - Fork 298
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
Feature request: Enable usage of IAsyncEnumerable<T>
for e. g. ResourceSet<Room>
#608
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
Comments
Eagle3386
changed the title
Feature request: Enable usage of
Feature request: Enable usage of May 13, 2022
IAsyncEnumerable<T>
for e. g. ResourceSet<Room>IAsyncEnumerable<T>
for e. g. ResourceSet<Room>
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. |
childish-sambino
added
type: community enhancement
feature request not on Twilio's roadmap
status: help wanted
requesting help from the community
labels
May 17, 2022
FWIW: using NuGet package public async IAsyncEnumerable<Room> GetRoomsAsync([EnumeratorCancellation] CancellationToken token = default)
{
var rooms = await RoomResource.ReadAsync().ConfigureAwait(false);
await foreach (var room in rooms.ToAsyncEnumerable().WithCancellation(token).ConfigureAwait(false))
{
var participants = await ParticipantResource.ReadAsync(room.Sid, StatusEnum.Connected).ConfigureAwait(false);
yield return new Room
{
Name = room.UniqueName,
ParticipantCount = participants.Count(),
ParticipantLimit = room.MaxParticipants ?? 0
};
}
} Furthermore, I'd like to suggest that the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
Issue Summary
Besides PR #589 which remains open for about half a year now, I'd like to ask for enhancement to the Video API so that I could do this:
Steps to Reproduce
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: