Home
last modified time | relevance | path

Searched refs:async (Results 1 – 25 of 3929) sorted by relevance

12345678910>>...158

/third_party/typescript/tests/baselines/reference/
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 () => p;
[all …]
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 () => p;
[all …]
Des2017basicAsync.js2 async (): Promise<void> => {
6 async function asyncFunc() {
10 const asyncArrowFunc = async (): Promise<void> => {
14 async function asyncIIFE() {
17 await (async function(): Promise<void> {
21 await (async function asyncNamedFunc(): Promise<void> {
25 await (async (): Promise<void> => {
31 asyncPropFunc = async function(): Promise<void> {
35 asyncPropNamedFunc = async function namedFunc(): Promise<void> {
39 asyncPropArrowFunc = async (): Promise<void> => {
[all …]
Dtypes.asyncGenerators.es2018.2.types2 async function * inferReturnType1() {
9 async function * inferReturnType2() {
17 async function * inferReturnType3() {
30 const assignability1: () => AsyncIterableIterator<number> = async function * () {
32 >async function * () { yield "a";} : () => AsyncGenerator<string, void, undefined>
39 const assignability2: () => AsyncIterableIterator<number> = async function * () {
41 >async function * () { yield* ["a", "b"];} : () => AsyncGenerator<string, void, undefined>
50 const assignability3: () => AsyncIterableIterator<number> = async function * () {
52 >async function * () { yield* (async function * () { yield "a"; })();} : () => AsyncGenerator<st…
54 yield* (async function * () { yield "a"; })();
[all …]
DasyncAwaitIsolatedModules_es5.types1 === tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncAwaitIsolatedModules_es2017.types1 === tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncAwaitIsolatedModules_es6.types1 === tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts ===
11 async function f0() { }
14 async function f1(): Promise<void> { }
17 async function f3(): MyPromise<void> { }
20 let f4 = async function() { }
22 >async function() { } : () => Promise<void>
24 let f5 = async function(): Promise<void> { }
26 >async function(): Promise<void> { } : () => Promise<void>
28 let f6 = async function(): MyPromise<void> { }
30 >async function(): MyPromise<void> { } : () => any
[all …]
DasyncAwait_es5.types1 === tests/cases/conformance/async/es5/asyncAwait_es5.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
DasyncAwait_es2017.types1 === tests/cases/conformance/async/es2017/asyncAwait_es2017.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
DasyncAwait_es6.types1 === tests/cases/conformance/async/es6/asyncAwait_es6.ts ===
15 async function f0() { }
18 async function f1(): Promise<void> { }
21 async function f3(): MyPromise<void> { }
24 let f4 = async function() { }
26 >async function() { } : () => Promise<void>
28 let f5 = async function(): Promise<void> { }
30 >async function(): Promise<void> { } : () => Promise<void>
32 let f6 = async function(): MyPromise<void> { }
34 >async function(): MyPromise<void> { } : () => MyPromise<void>
[all …]
DasyncAwaitIsolatedModules_es5.errors.txt1 tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts(1,27): error TS2307: Cannot find…
4 ==== tests/cases/conformance/async/es5/asyncAwaitIsolatedModules_es5.ts (1 errors) ====
12 async function f0() { }
13 async function f1(): Promise<void> { }
14 async function f3(): MyPromise<void> { }
16 let f4 = async function() { }
17 let f5 = async function(): Promise<void> { }
18 let f6 = async function(): MyPromise<void> { }
20 let f7 = async () => { };
21 let f8 = async (): Promise<void> => { };
[all …]
Demitter.asyncGenerators.classMethods.es2018.js5 async * f() {
10 async * f() {
16 async * f() {
22 async * f() {
28 async * f() {
29 const x = yield* (async function*() { yield 1; })();
34 async * f() {
40 async * f() {
48 async * f() {
57 async * f() {
[all …]
Dtypes.asyncGenerators.es2018.1.types2 async function * inferReturnType1() {
5 async function * inferReturnType2() {
11 async function * inferReturnType3() {
18 async function * inferReturnType4() {
29 async function * inferReturnType5() {
44 async function * inferReturnType6() {
53 async function * inferReturnType7() {
65 async function * inferReturnType8() {
68 yield* (async function * () { yield 1; })();
69 >yield* (async function * () { yield 1; })() : void
[all …]
Des2017basicAsync.types2 async (): Promise<void> => {
3 >async (): Promise<void> => { await 0;} : () => Promise<void>
10 async function asyncFunc() {
18 const asyncArrowFunc = async (): Promise<void> => {
20 >async (): Promise<void> => { await 0;} : () => Promise<void>
27 async function asyncIIFE() {
34 await (async function(): Promise<void> {
35 >await (async function(): Promise<void> { await 1; })() : void
36 >(async function(): Promise<void> { await 1; })() : Promise<void>
37 >(async function(): Promise<void> { await 1; }) : () => Promise<void>
[all …]
DasyncAwaitIsolatedModules_es2017.errors.txt1 tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts(1,27): error TS2792: Canno…
4 ==== tests/cases/conformance/async/es2017/asyncAwaitIsolatedModules_es2017.ts (1 errors) ====
12 async function f0() { }
13 async function f1(): Promise<void> { }
14 async function f3(): MyPromise<void> { }
16 let f4 = async function() { }
17 let f5 = async function(): Promise<void> { }
18 let f6 = async function(): MyPromise<void> { }
20 let f7 = async () => { };
21 let f8 = async (): Promise<void> => { };
[all …]
DasyncAwaitIsolatedModules_es6.errors.txt1 tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts(1,27): error TS2792: Cannot find…
4 ==== tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts (1 errors) ====
12 async function f0() { }
13 async function f1(): Promise<void> { }
14 async function f3(): MyPromise<void> { }
16 let f4 = async function() { }
17 let f5 = async function(): Promise<void> { }
18 let f6 = async function(): MyPromise<void> { }
20 let f7 = async () => { };
21 let f8 = async (): Promise<void> => { };
[all …]
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 function fn10(x) {
[all …]
Demitter.asyncGenerators.functionExpressions.es2018.js4 const f1 = async function * () {
7 const f2 = async function * () {
11 const f3 = async function * () {
15 const f4 = async function * () {
19 const f5 = async function * () {
20 const x = yield* (async function*() { yield 1; })();
23 const f6 = async function * () {
27 const f7 = async function * () {
33 const f1 = async function* () {
36 const f2 = async function* () {
[all …]
Demitter.asyncGenerators.functionDeclarations.es2018.js4 async function * f1() {
7 async function * f2() {
11 async function * f3() {
15 async function * f4() {
19 async function * f5() {
20 const x = yield* (async function*() { yield 1; })();
23 async function * f6() {
27 async function * f7() {
33 async function* f1() {
36 async function* f2() {
[all …]
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 …]
/third_party/jerryscript/tests/jerry/es2015/
Dfunction-async1.js28 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 async => {})
49 f = async => async;
52 f = async async => async;
[all …]
Dfunction-await1.js41 async a => await a
42 async a => { await a }
43 async (a) => await a
44 async(a) => { await a }
48 async (a) => {
55 async (a) => await a
57 async (a) => await a
61 async function f1(a) {
63 (function () { await ? async function(a) { await a } : await })
67 async (a) => {
[all …]
/third_party/typescript/tests/baselines/reference/user/
Dasync.log3 node_modules/async/all.js(32,12): error TS2304: Cannot find name 'AsyncFunction'.
4 node_modules/async/all.js(49,20): error TS2695: Left side of comma operator is unused and has no si…
5 node_modules/async/all.js(49,46): error TS2695: Left side of comma operator is unused and has no si…
6 node_modules/async/allLimit.js(28,9): error TS1003: Identifier expected.
7 node_modules/async/allLimit.js(33,12): error TS2304: Cannot find name 'AsyncFunction'.
8 node_modules/async/allLimit.js(41,20): error TS2695: Left side of comma operator is unused and has …
9 node_modules/async/allLimit.js(41,51): error TS2695: Left side of comma operator is unused and has …
10 node_modules/async/allSeries.js(24,9): error TS1003: Identifier expected.
11 node_modules/async/allSeries.js(28,12): error TS2304: Cannot find name 'AsyncFunction'.
12 node_modules/async/allSeries.js(36,20): error TS2695: Left side of comma operator is unused and has…
[all …]
/third_party/python/Lib/test/
Dtest_coroutines.py510 async def foo():
527 async def foo():
536 async def foo():
544 async def foo():
577 async def foo():
602 async def foo():
612 async def bar():
632 async def foo():
640 async def foo():
676 async def foo():
[all …]
Dtest_contextlib_async.py30 async def test_enter(self):
32 async def __aexit__(self, *args):
38 async with manager as context:
42 async def test_async_gen_propagates_generator_exit(self):
46 async def ctx():
49 async def gen():
50 async with ctx():
56 async with ctx():
57 async for val in gen():
72 async def __aenter__(self):
[all …]

12345678910>>...158