Ashley Rogers
4e318925a5
Switch tests to doctest
2025-01-15 16:58:03 -05:00
Ashley Rogers
768b6510b3
Quotes to brackets
2024-12-20 12:00:09 -05:00
Ashley Rogers
99c57bf66c
Enable two more clang-tidy checks
2024-12-18 13:04:47 -05:00
Ashley Rogers
1e2e47ab5e
misc-include-cleaner for every file
2024-12-17 17:27:03 -05:00
Ashley Rogers
cca8871eef
Include both catch2 headers
2024-11-22 11:30:45 -05:00
Ashley Rogers
f82d65bead
Change Catch2 header
2024-11-22 11:17:21 -05:00
Ashley Rogers
b61dc5cdca
Merge branch 'main' of github.com:CesiumGS/cesium-native into all-with-void-futures
2024-09-30 16:13:04 -04:00
Kevin Ring
c7268ccb9b
Fix error on clang.
2024-09-28 11:21:30 +10:00
Kevin Ring
87ee2e36aa
Support for mutable lambdas in `catch` functions.
2024-09-28 10:55:32 +10:00
Kevin Ring
116ee2dcb6
Support `AsyncSystem::all` on void Futures.
2024-06-04 16:06:40 +10:00
Brian L
90e1ce3895
Add additional reject test for explicit throw
2024-05-24 15:04:12 -06:00
Kevin Ring
9e9abb015a
Don't hang waiting for a future that rejects.
2024-05-22 17:55:41 +10:00
Kevin Ring
cd232f6b50
Add a couple more tests, remove unneeded header.
2024-04-04 21:33:28 +11:00
Kevin Ring
0428735c98
No spin waiting, add SharedFuture::waitInMainThread.
2024-04-04 19:04:10 +11:00
Kevin Ring
613637dcae
Add AsyncSystem::waitInMainThread.
2024-03-04 19:08:23 +11:00
Kevin Ring
86fce69b30
Add Future::thenPassThrough.
2023-11-17 16:33:47 +11:00
Kevin Ring
cc75a318d1
Fix GCC/Clang compiler error.
2022-10-16 00:34:00 +11:00
Kevin Ring
0eaed9270f
Fix mac segfault by putting repeated types in unnamed namespace.
2021-11-24 19:19:56 -05:00
Marco Hutter
0e827f7afd
Updated includes based on clang-format with Regroup
...
This MAINLY inserted some blank lines between
the blocks.
2021-09-26 17:46:27 +02:00
Kevin Ring
c2aa1885cd
Add `Future::isReady`.
2021-08-23 19:44:36 +10:00
Kevin Ring
b64e7dc0d3
Revert "Add Future::isReady."
...
This reverts commit 168f2c21aa .
2021-08-23 19:43:43 +10:00
Kevin Ring
168f2c21aa
Add Future::isReady.
2021-08-23 19:40:23 +10:00
Kevin Ring
883c40f4aa
Enabling chaining to another Future in a catch.
2021-07-23 15:43:51 +10:00
Kevin Ring
b7df34b49c
Allow catching a shared future.
2021-07-23 13:41:35 +10:00
Kevin Ring
f1ea6bd4ea
Allow use of `all` with SharedFutures.
2021-07-16 15:27:58 +10:00
Kevin Ring
3f45992843
More tests for SharedFuture
2021-07-16 12:36:54 +10:00
Kevin Ring
ae04eb1f8c
Fix build.
2021-07-16 12:28:53 +10:00
Kevin Ring
858f7ef5eb
WIP SharedFuture
2021-07-15 23:37:55 +10:00
Kevin Ring
e89b5f01f6
Formatting.
2021-07-15 18:03:13 +10:00
Kevin Ring
2079b56624
Add catchImmediately, more tests.
2021-07-15 18:02:00 +10:00
Kevin Ring
7dff5a9fc9
Formatting.
2021-07-15 14:06:58 +10:00
Kevin Ring
7f6f1e3687
Add `all` method to AsyncSystem.
2021-07-15 14:06:29 +10:00
Kevin Ring
d836b63b51
Rename dispatchZeroOrOneMainThreadTask to dispatchOneMainThreadTask.
...
And also improve its doc.
2021-07-14 17:01:51 +10:00
Kevin Ring
ad11fffb42
Add specialization for Promise<void>.
2021-07-07 14:40:10 +10:00
Kevin Ring
a1ebce1dcd
Allow direct creation of a Promise.
...
Rather than the JavaScript-like create a future by providing a callback
that is given a promise. This can be less exception safe (allow
exceptions to escape from a Future-returning method instead of being
turned into Promise rejection) but also tends to be much easier to work
with.
2021-07-07 14:12:15 +10:00
Kevin Ring
b2ac5a70f6
Fix a race condition in a test.
2021-07-07 00:53:54 +10:00
Kevin Ring
355c486683
Make Future::wait return T and throw on reject.
2021-07-06 23:29:59 +10:00
Kevin Ring
17a16a4dc7
AsyncSystem test improvements.
2021-07-06 22:12:42 +10:00
Kevin Ring
490114c648
Add some tests for AsyncSystem.
2021-07-06 19:01:46 +10:00