8000 feat: Add `for await (const contact of room) {}` support by ES6 iterators override · Issue #1198 · wechaty/wechaty · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
feat: Add for await (const contact of room) {} support by ES6 iterators override #1198
Closed
@huan

Description

@huan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0