O'Reilly logo

Beginning C# 7 Hands-On – Advanced Language Features by Tom Owsiak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running and modifying the program

Now, let's run the program. For this, crank it up in your browser and click on the Show Results button. Take a look at the results, as shown in Figure 8.3.2. There's one slight issue with the program as it's written. We will learn the reason for this problem momentarily and then fix it:

Figure 8.3.2: The initial run of our program

Now, there's one more function I want to tell you about, Join. Enter the following as the next line:

td.Join();

Now, if you hover your mouse over Join, the pop-up tip says Blocks the calling thread until the thread terminates, while continuing to perform standard COM and Send, Message ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required