WICG / idle-detection

A proposal for an idle detection and notification API for the web
Other
68 stars 22 forks source link

Add an AbortSignal to IdleOptions #23

Closed reillyeon closed 4 years ago

reillyeon commented 4 years ago

An AbortSignal allows the IdleDetector and any other operations to be stopped with a single call to AbortController.abort(). So that a single detector can be restarted the options have been moved from the constructor to the start() method.

Fixes #19.