User Tools

Site Tools


yield

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
yield [2018/04/22 10:10] – created wolfgangriedmannyield [2018/04/22 10:20] (current) wolfgangriedmann
Line 48: Line 48:
 WriteLine( "end creating list" )  WriteLine( "end creating list" )
 </code> </code>
-This code produces the following output:+This code produces the following output (please note that the output is created by the calling function **before** the called function is finished!)
 <code>start creating list <code>start creating list
 c:\bootmgr c:\bootmgr
Line 58: Line 58:
 c:\swapfile.sys c:\swapfile.sys
 end creating list</code> end creating list</code>
 +To explain a bit more: the ''yield'' returns the member of the list, and the calling code can work immediatly with instead of waiting for the called function to be complete.
 +This is particularly useful if you have longer processes and need to refresh the user interface.
yield.txt · Last modified: 2018/04/22 10:20 by wolfgangriedmann