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

Make implicit non-blocking calls explicitly blocking #260

Open
lrq3000 opened this issue Apr 24, 2019 · 0 comments
Open

Make implicit non-blocking calls explicitly blocking #260

lrq3000 opened this issue Apr 24, 2019 · 0 comments

Comments

@lrq3000
Copy link

lrq3000 commented Apr 24, 2019

There is an implicit behavior where calls to Matlab functions with no output arguments are non-blocking, and calls to Matlab functions witth output arguments are blocking.

This is in general fine but some functions with no output arguments are meant to be blocking (eg, functions that asks for user some input or to show a visualization for user to check). Currently, the only way to make such a call blocking is to change the Matlab function to return an argument.

Adding an optional argument to run_func() such as blocking=True that would make the call blocking in any case regardless of output arguments would solve this issue.

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