File tree 1 file changed +2
-2
lines changed
Sources/JavaScriptKit/BasicObjects
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- /** This timer type hides [`setInterval`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval)
1
+ /** This timer is an abstraction over [`setInterval`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval)
2
2
/ [`clearInterval`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval) and
3
3
[`setTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout)
4
4
/ [`clearTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout)
5
- pairs of calls for you . It intentionally doesn't match the JavaScript API, as a special care is
5
+ JavaScript functions . It intentionally doesn't match the JavaScript API, as a special care is
6
6
needed to hold a reference to the timer closure and to call `JSClosure.release()` on it when the
7
7
timer is deallocated. As a user, you have to hold a reference to a `JSTimer` instance for it to stay
8
8
valid. The `JSTimer` API is also intentionally trivial, the timer is started right away, and the
You can’t perform that action at this time.
0 commit comments