Open bethebest0622 opened 1 year ago
Sure. Process
takes a functor, and normally that is a lambda expression. As with all lambdas, you can pass specific local variables or all local variables like in this example. the [&]
statement tells the compiler to make all the local variables available as references inside Process()
.
I read the async demo, it's very easy and elegant.
but, can i pass parameters into the process function like this: