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

Documentation for EventQueue:waitFor() is wrong / misleading #372

Open
tomkcook opened this issue Jan 1, 2025 · 0 comments
Open

Documentation for EventQueue:waitFor() is wrong / misleading #372

tomkcook opened this issue Jan 1, 2025 · 0 comments

Comments

@tomkcook
Copy link

tomkcook commented Jan 1, 2025

Describe the bug
The documentation suggests that a table representing a filter can be passed directly to EventQueue:waitFor() but this doesn't work and fails with fairly misleading error messages. Calling like this:

queue:waitFor{event="StartDocking"}

results in an error calling 'waitFor' on bad self (table expected, got EventQueue). I tried a few different ways but it is necessary to construct an EventFilter object:

queue:waitFor(event.filter{event="StartDocking"})

This probably just needs a documentation fix.

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

No branches or pull requests

1 participant