Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/thread.d
3 changes: 3 additions & 0 deletions src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,9 @@ unittest
// create and start instances of each type
auto derived = new DerivedThread().start();
auto composed = new Thread(&threadFunc).start();
new Thread({
// Codes to run in the newly created thread.
}).start();
}

unittest
Expand Down