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

feat: Add for await (const contact of room) {} support by ES6 iterators override #1198

Closed
huan opened this issue May 11, 2018 · 1 comment
Closed

Comments

@huan
Copy link
Member

huan commented May 11, 2018

After support this, we can do:

const room = await Room.find('test room')
for await (const contact of room) {
  console.log('Contact', contact, 'is in room', room)
}

See

huan added a commit that referenced this issue May 11, 2018
huan added a commit that referenced this issue May 15, 2018
@huan
Copy link
Member Author

huan commented May 25, 2018

Should have been done by the commit.

@huan huan closed this as completed May 25, 2018
@huan huan changed the title feat: Add for (const contact of room) {} support by ES6 iterators override feat: Add for await (const contact of room) {} support by ES6 iterators override Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant