diff --git a/adoc/chapters/acknowledgements.adoc b/adoc/chapters/acknowledgements.adoc index 2ce12afa..1e919cfe 100644 --- a/adoc/chapters/acknowledgements.adoc +++ b/adoc/chapters/acknowledgements.adoc @@ -31,6 +31,7 @@ * Verena Beckham, Codeplay * Aidan Belton, Codeplay * Gordon Brown, Codeplay + * Hugh Delaney, Codeplay * Morris Hafner, Codeplay * Alexander Johnston, Codeplay * Marios Katsigiannis, Codeplay diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 6dc41f39..b58c6c45 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -14625,6 +14625,15 @@ interoperability member functions provided by the [code]#interop_handle# class. Local <> cannot be used within a <>. +[NOTE] +==== +If a C++ lambda is passed to a <>, the lambda may capture by +reference or by value. +Since the <> callable executes asynchronously, care must be taken to +ensure that lifetimes of objects captured by reference by a <> lambda +last at least until the <> completes. +==== + // TODO: access mode/target resolution rules [source,,linenums]