From 680f909e228251c8c9b11555c2baf67eb6280dd5 Mon Sep 17 00:00:00 2001 From: "[6~" Date: Tue, 22 Oct 2019 09:43:29 -0500 Subject: [PATCH] Better document async_ arg to Array.set --- pyopencl/array.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyopencl/array.py b/pyopencl/array.py index 3805d2d8..ad0e469e 100644 --- a/pyopencl/array.py +++ b/pyopencl/array.py @@ -584,6 +584,10 @@ class Array(object): *ary* must have the same dtype and size (not necessarily shape) as *self*. + *async_* is a Boolean indicating whether the function is allowed + to return before the transfer completes. To avoid synchronization + bugs, this defaults to *False*. + .. versionchanged:: 2017.2.1 Python 3.7 makes ``async`` a reserved keyword. On older Pythons, -- GitLab