C
C#13mo ago
user68721489

❔ Assign result from await to a variable

Is there a difference between those two calls? var awaitable = await GetObject(); otherObject.IntProperty = awaitable.IntProperty; // vs. otherObject.IntProperty = (await GetObject()).IntProperty;
4 Replies
canton7
canton713mo ago
Nothing significant, no
user68721489
user6872148913mo ago
@canton7 thanks
TheBoxyBear
TheBoxyBear13mo ago
But keep in mind the first is easier to debug 🙂
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts