morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::reactive::MutationOptions< A > Struct Template Reference

How a Mutation sequences its runs, and what a success invalidates. More...

#include <control.hpp>

Public Attributes

Concurrency concurrency = Concurrency::Exclusive
 What a run does while another is in flight.
std::function< std::string(A const &)> serialKey
 For Serial: the queue a run joins. Empty means one queue for every run.
std::vector< std::shared_ptr< InvalidationLink > > invalidates
 The queries refetched, in the same batch as the result, after every applied success. A link whose query is gone refetches nothing.

Detailed Description

template<typename A>
struct morph::reactive::MutationOptions< A >

How a Mutation sequences its runs, and what a success invalidates.

Template Parameters
AThe action type.

Definition at line 460 of file control.hpp.

Member Data Documentation

◆ concurrency

template<typename A>
Concurrency morph::reactive::MutationOptions< A >::concurrency = Concurrency::Exclusive

What a run does while another is in flight.

Definition at line 462 of file control.hpp.

◆ serialKey

template<typename A>
std::function<std::string(A const&)> morph::reactive::MutationOptions< A >::serialKey

For Serial: the queue a run joins. Empty means one queue for every run.

Definition at line 464 of file control.hpp.

◆ invalidates

template<typename A>
std::vector<std::shared_ptr<InvalidationLink> > morph::reactive::MutationOptions< A >::invalidates

The queries refetched, in the same batch as the result, after every applied success. A link whose query is gone refetches nothing.

Definition at line 467 of file control.hpp.


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