Home
last modified time | relevance | path

Searched refs:async (Results 1 - 25 of 993) sorted by relevance

12345678910>>...40

/third_party/typescript/tests/baselines/reference/
H A DasyncAwait_es2017.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
H A DasyncAwaitIsolatedModules_es2017.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
H A DasyncWithVarShadowing_es6.js5 async function fn1(x) {
9 async function fn2(x) {
13 async function fn3(x) {
17 async function fn4(x) {
21 async function fn5(x) {
25 async function fn6(x) {
29 async function fn7(x) {
33 async function fn8(x) {
37 async function fn9(x) {
41 async functio
[all...]
H A DexportDefaultAsyncFunction2.js4 export function async<T>(...args: any[]): any { }
8 import { async, await } from 'asyncawait';
9 export default async(() => await(Promise.resolve(1)));
12 export default async () => { return 0; };
15 import { async, await } from 'asyncawait';
16 export default async<number>();
19 import { async, await } from 'asyncawait';
21 export default async;
24 import { async, await } from 'asyncawait';
26 export default async
[all...]
H A DasyncAwait_es6.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
H A DasyncAwaitIsolatedModules_es6.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
H A DasyncFunctionDeclaration15_es6.js6 async function fn1() { } // valid: Promise<void>
7 async function fn2(): { } { } // error
8 async function fn3(): any { } // error
9 async function fn4(): number { } // error
10 async function fn5(): PromiseLike<void> { } // error
11 async function fn6(): Thenable { } // error
12 async function fn7() { return; } // valid: Promise<void>
13 async function fn8() { return 1; } // valid: Promise<number>
14 async function fn9() { return null; } // valid: Promise<any>
15 async functio
[all...]
H A DplainJSGrammarErrors.js22 async constructor() { }
27 async async extremelyAsync() {
29 async static oorder(){ }
58 async export function oorder(x = 1) { return x }
60 function cantAsyncParam(async x = 1) { return x }
61 async async function extremelyAsync() {}
62 async class CantAsyncClass {
63 async cantAsyncProper
[all...]
H A DasyncFunctionDeclaration15_es5.js6 async function fn1() { } // valid: Promise<void>
7 async function fn2(): { } { } // error
8 async function fn3(): any { } // error
9 async function fn4(): number { } // error
10 async function fn5(): PromiseLike<void> { } // error
11 async function fn6(): Thenable { } // error
12 async function fn7() { return; } // valid: Promise<void>
13 async function fn8() { return 1; } // valid: Promise<number>
14 async function fn9() { return null; } // valid: Promise<any>
15 async functio
[all...]
H A DasyncAwait_es5.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
H A Des5-asyncFunctionBinaryExpressions.js4 async function binaryPlus0() {
8 async function binaryPlus1() {
12 async function binaryLogicalAnd0() {
16 async function binaryLogicalAnd1() {
20 async function binaryAssignment0() {
24 async function binaryAssignment1() {
28 async function binaryAssignment2() {
32 async function binaryAssignment3() {
36 async function binaryAssignment4() {
40 async functio
[all...]
H A DasyncAwaitIsolatedModules_es5.js7 async function f0() { }
8 async function f1(): Promise<void> { }
9 async function f3(): MyPromise<void> { }
11 let f4 = async function() { }
12 let f5 = async function(): Promise<void> { }
13 let f6 = async function(): MyPromise<void> { }
15 let f7 = async () => { };
16 let f8 = async (): Promise<void> => { };
17 let f9 = async (): MyPromise<void> => { };
18 let f10 = async ()
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dfunction-async1.js15 /* This test checks async modifiers (nothing else). */
28 async function f(a) {
34 f = async function (a) { return a }
37 f = (async function (a) { return a })
40 f = [async function (a) { return a }]
44 async => {}
45 async async => {}
46 (async => {})
47 (async asyn
[all...]
H A Dfunction-await1.js27 check_syntax_error("(async function await() {})")
28 check_syntax_error("(async function *await() {})")
29 check_syntax_error("async function f(await) {}")
30 check_syntax_error("(async function f(await) {})")
31 check_syntax_error("async function f(a = await new Promise) {}")
32 check_syntax_error("async function f() { function await() {} }")
33 check_syntax_error("async await => 0");
34 check_syntax_error("async (await) => 0");
35 check_syntax_error("async function f() { await () => 0 }");
36 check_syntax_error("async (
[all...]
H A Dfunction-async2.js15 /* This test checks async modifiers (nothing else). */
27 check_syntax_error("function async f() {}")
28 check_syntax_error("(a,b) async => 1")
30 check_syntax_error("async * (a,b) => 1")
31 check_syntax_error("({ *async f() {} })")
32 check_syntax_error("class C { async static f() {} }")
33 check_syntax_error("class C { * async f() {} }")
34 check_syntax_error("class C { static * async f() {} }")
47 async f() { return 1 },
48 async() { retur
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_taskgroups.py31 async def test_taskgroup_01(self):
33 async def foo1():
37 async def foo2():
41 async with taskgroups.TaskGroup() as g:
48 async def test_taskgroup_02(self):
50 async def foo1():
54 async def foo2():
58 async with taskgroups.TaskGroup() as g:
66 async def test_taskgroup_03(self):
68 async de
[all...]
H A Dtest_timeouts.py16 async def test_timeout_basic(self):
18 async with asyncio.timeout(0.01) as cm:
22 async def test_timeout_at_basic(self):
27 async with asyncio.timeout_at(deadline) as cm:
32 async def test_nested_timeouts(self):
37 async with asyncio.timeout_at(deadline) as cm1:
40 async with asyncio.timeout_at(deadline) as cm2:
49 async def test_waiter_cancelled(self):
53 async with asyncio.timeout(0.01):
61 async de
[all...]
H A Dtest_locks.py28 async def test_repr(self):
37 async def test_lock(self):
48 async def test_lock_doesnt_accept_loop_parameter(self):
67 async def test_lock_by_with_statement(self):
86 async def test_acquire(self):
92 async def c1(result):
97 async def c2(result):
102 async def c3(result):
137 async def test_acquire_cancel(self):
147 async de
[all...]
H A Dtest_waitfor.py23 async def run(self):
41 async def test_asyncio_wait_for_cancelled(self):
52 async def test_asyncio_wait_for_timeout(self):
62 async def test_wait_for_timeout_less_then_0_or_0_future_done(self):
76 async def test_wait_for_timeout_less_then_0_or_0_coroutine_do_not_started(self):
81 async def foo():
93 async def test_wait_for_timeout_less_then_0_or_0(self):
101 async def foo():
125 async def test_wait_for(self):
129 async de
[all...]
/third_party/python/Lib/test/
H A Dtest_coroutines.py32 async def asynciter(iterable):
89 """async def foo():
93 """async def foo():
97 """async def foo(a=await something()):
101 """async def foo(a:await something()):
105 """async def foo():
107 [i async for i in els]
110 """async def foo():
115 """async def foo():
118 async fo
[all...]
H A Dtest_contextlib_async.py15 """Decorator to turn an async function into a test case."""
29 async def test_enter(self):
31 async def __aexit__(self, *args):
37 async with manager as context:
41 async def test_async_gen_propagates_generator_exit(self):
45 async def ctx():
48 async def gen():
49 async with ctx():
55 async with ctx():
56 async fo
[all...]
/third_party/node/deps/npm/test/lib/commands/
H A Dprofile.js4 const mockProfile = async (t, { npmProfile, readUserInfo, qrcode, config, ...opts } = {}) => {
7 async get () {},
8 async set () {},
9 async createToken () {},
20 async password () {},
21 async otp () {},
59 t.test('no args', async t => {
64 t.test('profile get no args', async t => {
66 async get () {
71 t.test('default output', async
[all...]
H A Dview.js267 const loadMockNpm = async function (t, opts = {}) {
284 t.test('package from git', async t => {
290 t.test('deprecated package with license, bugs, repository and other fields', async t => {
296 t.test('deprecated package with unicode', async t => {
302 t.test('package with more than 25 deps', async t => {
308 t.test('package with maintainers info as object', async t => {
314 t.test('package with homepage', async t => {
320 t.test('package with invalid version', async t => {
326 t.test('package with no versions', async t => {
332 t.test('package with no repo or homepage', async
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_async_case.py22 async def __aenter__(self):
26 async def __aexit__(self, *exc_info):
33 async def __aexit__(self, *exc_info):
36 async def __aenter__(self):
71 async def asyncSetUp(self):
78 async def test_func(self):
85 async def asyncTearDown(self):
102 async def on_cleanup2(self):
112 async def on_cleanup4(self):
122 async de
[all...]
/third_party/libcoap/src/
H A Dcoap_async.c100 coap_async_trigger(coap_async_t *async) { in coap_async_trigger() argument
101 assert(async != NULL); in coap_async_trigger()
102 coap_ticks(&async->delay); in coap_async_trigger()
105 coap_session_str(async->session)); in coap_async_trigger()
107 coap_update_epoll_timer(async->session->context, 0); in coap_async_trigger()
113 coap_async_set_delay(coap_async_t *async, coap_tick_t delay) { in coap_async_set_delay() argument
116 assert(async != NULL); in coap_async_set_delay()
120 async->delay = now + delay; in coap_async_set_delay()
122 coap_update_epoll_timer(async->session->context, delay); in coap_async_set_delay()
125 coap_session_str(async in coap_async_set_delay()
178 coap_async_set_app_data(coap_async_t *async, void *app_data) coap_async_set_app_data() argument
183 coap_async_get_app_data(const coap_async_t *async) coap_async_get_app_data() argument
205 coap_async_set_delay(coap_async_t *async, coap_tick_t delay) coap_async_set_delay() argument
211 coap_free_async(coap_session_t *session, coap_async_t *async) coap_free_async() argument
225 coap_async_set_app_data(coap_async_t *async, void *app_data) coap_async_set_app_data() argument
231 coap_async_get_app_data(const coap_async_t *async) coap_async_get_app_data() argument
[all...]

Completed in 9 milliseconds

12345678910>>...40