diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-11 11:36:15 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-11 11:36:15 +0200 |
commit | 84294d0b5462d0a05fb5d53df5a64f7ee624a726 (patch) | |
tree | 16b79e505db565c5712b442cdfb3f3bb15be7884 /tests/finalizer.lua | |
parent | 17f98b33ed26338094a08d25e9fbf25b71c58f16 (diff) | |
download | lanes-84294d0b5462d0a05fb5d53df5a64f7ee624a726.tar.gz lanes-84294d0b5462d0a05fb5d53df5a64f7ee624a726.tar.bz2 lanes-84294d0b5462d0a05fb5d53df5a64f7ee624a726.zip |
Fixes and improvements to lane:join()
* fix: returns nil,cancel_error when lane was cancelled
* improvement: enforce non-nil first return value of lane body when using lane:join() to obtain the results
Diffstat (limited to 'tests/finalizer.lua')
-rw-r--r-- | tests/finalizer.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/finalizer.lua b/tests/finalizer.lua index 2acc39d..3158c65 100644 --- a/tests/finalizer.lua +++ b/tests/finalizer.lua | |||
@@ -39,6 +39,7 @@ local function lane(error_) | |||
39 | error(error_, 0) -- exception here; the value needs NOT be a string | 39 | error(error_, 0) -- exception here; the value needs NOT be a string |
40 | end | 40 | end |
41 | -- no exception | 41 | -- no exception |
42 | return true | ||
42 | end | 43 | end |
43 | 44 | ||
44 | -- | 45 | -- |