-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathcallbackSequence.js
43 lines (29 loc) · 1.08 KB
/
callbackSequence.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
telemetryLog("Start Global Code", true);
function foo1()
{
telemetryLog("Start Foo1", true);
WScript.Echo("Hello World - CallBack 1");
WScript.SetTimeout(foo2, 200);
telemetryLog("End Foo1", true);
}
function foo2()
{
telemetryLog("Start Foo2", true);
WScript.Echo("Hello World - CallBack 2");
WScript.SetTimeout(foo3, 200);
telemetryLog("End Foo2", true);
}
function foo3()
{
telemetryLog("Start Foo3", true);
WScript.Echo("Hello World - CallBack 3");
telemetryLog("End Foo3", true);
emitTTDLog(ttdLogURI);
}
WScript.SetTimeout(foo1, 200);
WScript.Echo("Hello World - Global");
telemetryLog("End Global Code", true);