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

Allow lambdas as callback #2404

Open
4 tasks
drdanz opened this issue Nov 11, 2020 · 0 comments
Open
4 tasks

Allow lambdas as callback #2404

drdanz opened this issue Nov 11, 2020 · 0 comments
Labels
Component: Library - YARP_os Type: Epic Type: Modernization Involves porting some part of code to modern C++ (11/14/17...)
Milestone

Comments

@drdanz
Copy link
Member

drdanz commented Nov 11, 2020

At the moment, all the callback mechanisms in YARP require writing a class that implement some interface, just to have a method that is called as callback. It would be a lot better to be able to pass lambdas to these functions.
Also in some cases it would be useful to receive a std::future in reply

I'll keep a list here, and link to the related issues and PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Library - YARP_os Type: Epic Type: Modernization Involves porting some part of code to modern C++ (11/14/17...)
Projects
None yet
Development

No branches or pull requests

1 participant