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(event-emitter): add waitFor method #32

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

nakasyou
Copy link
Collaborator

Description

I added a promise method to TypedEventEmitter.
If you merged it, you can write code like that:

const [pin] = await client.promise('pincall')

Checklist

  • Run tests (optional)
  • Add jsdoc (optional)
  • Test in your environment (optional)

If you feel good :), please do the contents of the checklist.

@EdamAme-x EdamAme-x merged commit 3b3701a into evex-dev:main Sep 13, 2024
2 checks passed
@nakasyou nakasyou deleted the feat/event-promise branch September 13, 2024 14:37
@EdamAme-x EdamAme-x changed the title feat(event-emitter): add promise method feat(event-emitter): add waitFor method Sep 14, 2024
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.

2 participants