delegatebegininvoke

September 14, 2025 ยท View on GitHub

Shows how to use xtd::delegate::begin_invoke, xtd::delegate::end_invoke and xtd::delegate::invoke methods.

Sources

  • src/delegate_begin_invoke.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

(Thread 1) Hello xtd!
return = 42
(Thread 4) Hello Gammasoft!
return = 24

Contents

  1. 1Sources
  2. 2Build and run
  3. 3Output