Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AsyncTaskSequence Struct Reference

An AsyncSequence using a SC::ThreadPool to execute one or more SC::AsyncRequest in a background thread. More...

#include <Async.h>

Inheritance diagram for SC::AsyncTaskSequence:
SC::AsyncSequence

Protected Attributes

ThreadPoolTask task
 
ThreadPoolthreadPool = nullptr
 
detail::AsyncCompletionVariant completion
 
SC::Result returnCode = SC::Result(true)
 

Friends

struct AsyncEventLoop
 
struct AsyncRequest
 

Additional Inherited Members

- Public Attributes inherited from SC::AsyncSequence
AsyncSequencenext = nullptr
 
AsyncSequenceprev = nullptr
 
bool clearSequenceOnCancel = true
 Do not queue next requests in the sequence when current one is cancelled.
 
bool clearSequenceOnError = true
 Do not queue next requests in the sequence when current one returns error.
 

Detailed Description

An AsyncSequence using a SC::ThreadPool to execute one or more SC::AsyncRequest in a background thread.

Calling SC::AsyncRequest::executeOn on multiple requests with the same SC::AsyncTaskSequence queues them to be serially executed on the same thread.


The documentation for this struct was generated from the following file: