mirror of
https://gitlab.com/niansa/libcrosscoro.git
synced 2025-03-06 20:53:32 +01:00
See issue for more details, in general attempting to implement a coro::thread_pool exposed that the coro::sync_wait and coro::when_all only worked if the coroutines executed on that same thread. They should now possibly have the ability to execute on another thread, to be determined in a later issue. Fixes #7
14 lines
254 B
C++
14 lines
254 B
C++
#pragma once
|
|
|
|
namespace coro
|
|
{
|
|
|
|
enum class shutdown_t
|
|
{
|
|
/// Synchronously wait for all tasks to complete when calling shutdown.
|
|
sync,
|
|
/// Asynchronously let tasks finish on the background thread on shutdown.
|
|
async
|
|
};
|
|
|
|
} // namespace coro
|