Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
endurodave committed Dec 8, 2024
1 parent ac83437 commit 67fdf7e
Show file tree
Hide file tree
Showing 7 changed files with 1,723 additions and 126 deletions.
1,568 changes: 1,568 additions & 0 deletions Docs/DETAILS.md

Large diffs are not rendered by default.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
275 changes: 152 additions & 123 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void TestAllTargetTypes() {
// Any function with the signature "void Func(int)".
MulticastDelegateSafe<void(int)> delegateA;

// Add all callable function targets with delegate container
// Add all callable function targets to the delegate container
// Synchronous delegates
delegateA += MakeDelegate(&FreeFunc);
delegateA += MakeDelegate(LambdaCapture);
Expand Down Expand Up @@ -327,14 +327,14 @@ void TestAllTargetTypes() {
delegateA += MakeDelegate(testClassSp, &Class::MemberFunc, workerThread1, WAIT_INFINITE);
delegateA += MakeDelegate(testClassSp, &Class::MemberFuncConst, workerThread1, WAIT_INFINITE);

// Invoke all callable function targets
// Invoke all callable function targets stored within the delegate container
if (delegateA)
delegateA(123);

// Wait for async callbacks to complete
std::this_thread::sleep_for(std::chrono::milliseconds(100));

// Remove all callable function targets from delegate container
// Remove all callable function targets from the delegate container
// Synchronous delegates
delegateA -= MakeDelegate(&FreeFunc);
delegateA -= MakeDelegate(LambdaCapture);
Expand Down

0 comments on commit 67fdf7e

Please sign in to comment.