News for hackers. Stuff that matters.
Re:Three ways of handling user input by ianbicking on Friday January 07, 2022 @01:01PM (#29842377)
Oh... on second thought I realize the exception would have to come from `event.pointermove` (for example), and that object doesn't know anything about the receiver or whether it should cancel. So yeah, this does seem problematic.
Re:Three ways of handling user input by jayd16 on Friday January 07, 2022 @02:58PM (#29843939)
Are you worried about when the case when an exception should be thrown from the thing being awaited? I'm not familiar with Arbo but usually the promise holds on to the exception until its observed. It could be that Arbo is configured to ignore the exception if the task is already cancelled.