Value of a variable is "needed" when some thread has to wait for it to determine or the variable is determined. So clearly in second case thread won't wait and X will be computed.
Required Example:
X = {ALazyFunc}
X = 3
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment