Lean
$LEAN_TAG$
|
Helper class to synchronize execution based on a string key More...
Public Member Functions | |
void | Execute (string key, bool singleExecution, Action action) |
Execute the given action synchronously with any other thread using the same key More... | |
T | Execute< T > (string key, Func< T > action) |
Execute the given function synchronously with any other thread using the same key More... | |
Helper class to synchronize execution based on a string key
Definition at line 26 of file KeyStringSynchronizer.cs.
void QuantConnect.Util.KeyStringSynchronizer.Execute | ( | string | key, |
bool | singleExecution, | ||
Action | action | ||
) |
Execute the given action synchronously with any other thread using the same key
key | The synchronization key |
singleExecution | True if execution should happen only once at the same time for multiple threads |
action | The action to execute |
Definition at line 36 of file KeyStringSynchronizer.cs.
T QuantConnect.Util.KeyStringSynchronizer.Execute< T > | ( | string | key, |
Func< T > | action | ||
) |
Execute the given function synchronously with any other thread using the same key
key | The synchronization key |
action | The function to execute |
Definition at line 46 of file KeyStringSynchronizer.cs.