❔ 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
canton72y ago
Nothing significant, no
user68721489
user68721489OP2y ago
@canton7 thanks
TheBoxyBear
TheBoxyBear2y ago
But keep in mind the first is easier to debug 🙂
Accord
Accord2y 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