Skip to content

Commit 716e482

Browse files
author
Vladimir Enchev
committed
readme updated
1 parent db1681a commit 716e482

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

BCL.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@
208208
<ItemGroup>
209209
<Content Include="globals\Readme.md" />
210210
</ItemGroup>
211+
<ItemGroup>
212+
<Content Include="timer\Readme.md" />
213+
</ItemGroup>
211214
<PropertyGroup Condition="'$(Configuration)' == 'iOS'">
212215
<TypeScriptModuleKind>commonjs</TypeScriptModuleKind>
213216
<TypeScriptRemoveComments>True</TypeScriptRemoveComments>

timer/Readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,20 @@
1313
var intervalId = setInterval(function(){ log("Test"); }, 2000);
1414
...
1515
clearInterval(intervalId)
16+
```
17+
OR
18+
```js
19+
var timer = require("timer");
20+
21+
timer.setTimeout(function(){ log("Test"); }, 2000);
22+
23+
var id = timer.setTimeout(function(){ log("Test"); }, 2000);
24+
...
25+
timer.clearTimeout(id);
26+
27+
timer.setInterval(function(){ log("Test"); }, 2000);
28+
29+
var intervalId = timer.setInterval(function(){ log("Test"); }, 2000);
30+
...
31+
timer.clearInterval(intervalId)
1632
```

0 commit comments

Comments
 (0)