Skip to content

Commit 5c0cead

Browse files
committed
Refine JSTimer doc comment
1 parent 9d7057a commit 5c0cead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JavaScriptKit/BasicObjects/JSTimer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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)
22
/ [`clearInterval`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval) and
33
[`setTimeout`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout)
44
/ [`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
66
needed to hold a reference to the timer closure and to call `JSClosure.release()` on it when the
77
timer is deallocated. As a user, you have to hold a reference to a `JSTimer` instance for it to stay
88
valid. The `JSTimer` API is also intentionally trivial, the timer is started right away, and the

0 commit comments

Comments
 (0)