Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
Await

🟨 C++20 coroutine layer over Async (see Await for more details) C++20 coroutine layer over SC::AsyncEventLoop. More...

Enumerations

enum class  SC::AwaitError : uint32_t {
  Cancelled = 1 ,
  WrongEventLoop ,
  AllocatorAlreadyOpen ,
  AllocatorStorageEmpty ,
  AllocatorReservationEmpty ,
  AllocatorReservationFailed ,
  AllocatorCommitFailed ,
  AllocatorHasLiveAllocations ,
  InvalidTask ,
  TaskNotCompleted ,
  TaskNotStarted ,
  TaskAlreadyStarted ,
  TaskCancellationUnavailable ,
  UnhandledException ,
  SocketSendNoProgress ,
  SocketReceiveIncomplete ,
  SocketReceiveNoProgress ,
  EmptyReceiveBuffer ,
  ReceiveLineBufferExhausted ,
  FileReadNoProgress ,
  OperationUnsupported ,
  InvalidFileHandle ,
  MissingOutputFile ,
  MissingFile ,
  MissingReadResult ,
  InvalidFileSystemOperation ,
  TaskGroupStorageFull ,
  TaskGroupResultStorageTooSmall = 29 ,
  InactiveTask ,
  TaskGroupEmpty ,
  TaskAlreadyAwaited ,
  RegistryStorageFull = 34 ,
  RegistryEmpty = 36 ,
  TaskTimedOut = 38 ,
  InvalidWorkCallback
}
 Stable portable failures owned by Await. More...
 

Detailed Description

🟨 C++20 coroutine layer over Async (see Await for more details) C++20 coroutine layer over SC::AsyncEventLoop.

Await is an experimental wrapper that lets coroutine bodies express asynchronous operations with co_await while still returning plain SC::Result values and using caller-provided output objects.

Enumeration Type Documentation

◆ AwaitError

enum class SC::AwaitError : uint32_t
strong

#include <AwaitError.h>

Stable portable failures owned by Await.

Values are append-only.

Results from Async and other libraries retain their original identity.