serenity/Tests/LibCore
Zaggy1024 fe672989a9 LibCore: Add a class for thread-safe promises
Since the existing Promise class is designed with deferred tasks on the
main thread only, we need a new class that will ensure we can handle
promises that are resolved/rejected off the main thread.

This new class ensures that the callbacks are only called on the same
thread that the promise is fulfilled from. If the callbacks are not set
before the thread tries to fulfill the promise, it will spin until they
are so that they will run on that thread.
2023-08-04 13:49:36 -06:00
..
10kb.txt LibCore: Fix relative seeking in IODevice 2021-11-30 10:51:10 +01:00
CMakeLists.txt LibCore: Add a class for thread-safe promises 2023-08-04 13:49:36 -06:00
long_lines.txt LibCore: Add unit test for File::read_line 2021-06-22 18:54:40 +04:30
small.txt Tests/LibCore: Add regression test for the read_until_any_of OOB read 2022-01-01 14:44:02 +01:00
TestLibCoreArgsParser.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
TestLibCoreDeferredInvoke.cpp LibCore+Userland: Make Core::Timer::create_single_shot() return ErrorOr 2023-01-12 11:25:51 +01:00
TestLibCoreFilePermissionsMask.cpp Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error()) 2023-05-14 15:39:38 -06:00
TestLibCoreFileWatcher.cpp Tests: Re-enable TestLibCoreFileWatcher on macOS 2023-04-26 19:17:04 +01:00
TestLibCorePromise.cpp LibCore: Add a class for thread-safe promises 2023-08-04 13:49:36 -06:00
TestLibCoreSharedSingleProducerCircularQueue.cpp Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error()) 2023-05-14 15:39:38 -06:00
TestLibCoreStream.cpp LibCore: Keep track of file offset to avoid system call for tell() 2023-07-06 21:05:57 +02:00