@tsonic/dotnet 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
- package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
- package/Microsoft.Win32/internal/index.d.ts +12 -12
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +1277 -1289
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +13 -13
- package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
- package/System.Collections/internal/index.d.ts +66 -68
- package/System.Collections.Concurrent/internal/index.d.ts +24 -24
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +141 -133
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +121 -121
- package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
- package/System.Collections.Specialized/internal/index.d.ts +85 -87
- package/System.ComponentModel/internal/index.d.ts +595 -597
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
- package/System.ComponentModel.Design/internal/index.d.ts +90 -90
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
- package/System.Data/internal/index.d.ts +225 -225
- package/System.Data.Common/internal/index.d.ts +62 -62
- package/System.Data.SqlTypes/internal/index.d.ts +73 -73
- package/System.Diagnostics/internal/index.d.ts +343 -343
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
- package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
- package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
- package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
- package/System.Drawing/internal/index.d.ts +99 -99
- package/System.Dynamic/internal/index.d.ts +33 -33
- package/System.Formats.Asn1/internal/index.d.ts +12 -12
- package/System.Formats.Tar/internal/index.d.ts +17 -17
- package/System.Globalization/internal/index.d.ts +51 -51
- package/System.IO/internal/index.d.ts +172 -172
- package/System.IO.Compression/internal/index.d.ts +56 -56
- package/System.IO.Enumeration/internal/index.d.ts +6 -6
- package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
- package/System.IO.Pipelines/internal/index.d.ts +13 -13
- package/System.IO.Pipes/internal/index.d.ts +32 -32
- package/System.Linq/internal/index.d.ts +187 -187
- package/System.Linq.Expressions/internal/index.d.ts +203 -203
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
- package/System.Net/internal/index.d.ts +218 -220
- package/System.Net.Cache/internal/index.d.ts +10 -10
- package/System.Net.Http/internal/index.d.ts +89 -89
- package/System.Net.Http.Headers/internal/index.d.ts +86 -86
- package/System.Net.Http.Json/internal/index.d.ts +59 -59
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Mail/internal/index.d.ts +92 -92
- package/System.Net.Mime/internal/index.d.ts +6 -6
- package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
- package/System.Net.Quic/internal/index.d.ts +13 -13
- package/System.Net.Security/internal/index.d.ts +70 -70
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
- package/System.Net.Sockets/internal/index.d.ts +94 -94
- package/System.Net.WebSockets/internal/index.d.ts +46 -46
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +128 -130
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +271 -271
- package/System.Reflection.Emit/internal/index.d.ts +123 -123
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +179 -179
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
- package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
- package/System.Resources/internal/index.d.ts +38 -38
- package/System.Runtime/internal/index.d.ts +9 -9
- package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
- package/System.Runtime.Loader/internal/index.d.ts +9 -9
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +113 -115
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
- package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
- package/System.Runtime.Versioning/internal/index.d.ts +22 -22
- package/System.Security/internal/index.d.ts +63 -63
- package/System.Security.AccessControl/internal/index.d.ts +84 -84
- package/System.Security.Authentication/internal/index.d.ts +6 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
- package/System.Security.Claims/internal/index.d.ts +38 -40
- package/System.Security.Cryptography/internal/index.d.ts +378 -378
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
- package/System.Security.Permissions/internal/index.d.ts +1 -1
- package/System.Security.Policy/internal/index.d.ts +6 -6
- package/System.Security.Principal/internal/index.d.ts +29 -31
- package/System.Text/internal/index.d.ts +94 -94
- package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
- package/System.Text.Json/internal/index.d.ts +103 -103
- package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
- package/System.Text.Json.Schema/internal/index.d.ts +7 -7
- package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
- package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
- package/System.Text.Unicode/internal/index.d.ts +6 -6
- package/System.Threading/internal/index.d.ts +160 -160
- package/System.Threading.Channels/internal/index.d.ts +12 -12
- package/System.Threading.Tasks/internal/index.d.ts +125 -135
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
- package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
- package/System.Timers/internal/index.d.ts +8 -8
- package/System.Transactions/internal/index.d.ts +51 -51
- package/System.Web/internal/index.d.ts +32 -32
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Windows.Markup/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +281 -281
- package/System.Xml.Linq/internal/index.d.ts +76 -76
- package/System.Xml.Resolvers/internal/index.d.ts +8 -8
- package/System.Xml.Schema/internal/index.d.ts +173 -173
- package/System.Xml.Serialization/internal/index.d.ts +200 -200
- package/System.Xml.XPath/internal/index.d.ts +28 -28
- package/System.Xml.Xsl/internal/index.d.ts +53 -53
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ export interface BoundedChannelOptions$instance extends ChannelOptions {
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export const BoundedChannelOptions: {
|
|
37
|
-
new(capacity: int): BoundedChannelOptions
|
|
37
|
+
new(capacity: int): BoundedChannelOptions;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
|
|
@@ -68,10 +68,10 @@ export interface ChannelClosedException$instance extends InvalidOperationExcepti
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
export const ChannelClosedException: {
|
|
71
|
-
new(): ChannelClosedException
|
|
72
|
-
new(message: string): ChannelClosedException
|
|
73
|
-
new(innerException: Exception): ChannelClosedException
|
|
74
|
-
new(message: string, innerException: Exception): ChannelClosedException
|
|
71
|
+
new(): ChannelClosedException;
|
|
72
|
+
new(message: string | undefined): ChannelClosedException;
|
|
73
|
+
new(innerException: Exception | undefined): ChannelClosedException;
|
|
74
|
+
new(message: string | undefined, innerException: Exception | undefined): ChannelClosedException;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
|
|
@@ -115,11 +115,11 @@ export const ChannelReader_1: {
|
|
|
115
115
|
export type ChannelReader_1<T> = ChannelReader_1$instance<T>;
|
|
116
116
|
|
|
117
117
|
export interface ChannelWriter_1$instance<T> {
|
|
118
|
-
complete(error?: Exception): void;
|
|
119
|
-
tryComplete(error?: Exception): boolean;
|
|
120
|
-
tryWrite(item: T): boolean;
|
|
118
|
+
complete(error?: Exception | undefined): void;
|
|
119
|
+
tryComplete(error?: Exception | undefined): boolean;
|
|
120
|
+
tryWrite(item: T | undefined): boolean;
|
|
121
121
|
waitToWriteAsync(cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Boolean>;
|
|
122
|
-
writeAsync(item: T, cancellationToken?: CancellationToken): ValueTask;
|
|
122
|
+
writeAsync(item: T | undefined, cancellationToken?: CancellationToken): ValueTask;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
|
|
@@ -134,7 +134,7 @@ export interface UnboundedChannelOptions$instance extends ChannelOptions {
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
export const UnboundedChannelOptions: {
|
|
137
|
-
new(): UnboundedChannelOptions
|
|
137
|
+
new(): UnboundedChannelOptions;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
|
|
@@ -146,7 +146,7 @@ export interface UnboundedPrioritizedChannelOptions_1$instance<T> extends Channe
|
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
export const UnboundedPrioritizedChannelOptions_1: {
|
|
149
|
-
new<T>(): UnboundedPrioritizedChannelOptions_1
|
|
149
|
+
new<T>(): UnboundedPrioritizedChannelOptions_1<T>;
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
|
|
@@ -154,7 +154,7 @@ export type UnboundedPrioritizedChannelOptions_1<T> = UnboundedPrioritizedChanne
|
|
|
154
154
|
|
|
155
155
|
export abstract class Channel$instance {
|
|
156
156
|
static createBounded<T>(capacity: int): Channel_1<T>;
|
|
157
|
-
static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T>): Channel_1<T>;
|
|
157
|
+
static createBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T> | undefined): Channel_1<T>;
|
|
158
158
|
static createBounded<T>(options: BoundedChannelOptions): Channel_1<T>;
|
|
159
159
|
static createUnbounded<T>(): Channel_1<T>;
|
|
160
160
|
static createUnbounded<T>(options: UnboundedChannelOptions): Channel_1<T>;
|
|
@@ -76,7 +76,7 @@ export interface ParallelLoopResult$instance {
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
export const ParallelLoopResult: {
|
|
79
|
-
new(): ParallelLoopResult
|
|
79
|
+
new(): ParallelLoopResult;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
|
|
@@ -98,8 +98,8 @@ export interface ValueTask$instance {
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
export const ValueTask: {
|
|
101
|
-
new(task: Task): ValueTask
|
|
102
|
-
new(source: IValueTaskSource, token: short): ValueTask
|
|
101
|
+
new(task: Task): ValueTask;
|
|
102
|
+
new(source: IValueTaskSource, token: short): ValueTask;
|
|
103
103
|
readonly completedTask: ValueTask;
|
|
104
104
|
fromCanceled(cancellationToken: CancellationToken): ValueTask;
|
|
105
105
|
fromCanceled<TResult>(cancellationToken: CancellationToken): ValueTask_1<TResult>;
|
|
@@ -137,9 +137,9 @@ export interface ValueTask_1$instance<TResult> {
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
export const ValueTask_1: {
|
|
140
|
-
new<TResult>(result: TResult): ValueTask_1
|
|
141
|
-
new<TResult>(task: Task_1<TResult>): ValueTask_1
|
|
142
|
-
new<TResult>(source: IValueTaskSource_1<TResult>, token: short): ValueTask_1
|
|
140
|
+
new<TResult>(result: TResult): ValueTask_1<TResult>;
|
|
141
|
+
new<TResult>(task: Task_1<TResult>): ValueTask_1<TResult>;
|
|
142
|
+
new<TResult>(source: IValueTaskSource_1<TResult>, token: short): ValueTask_1<TResult>;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
|
|
@@ -162,10 +162,10 @@ export interface ConcurrentExclusiveSchedulerPair$instance {
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
export const ConcurrentExclusiveSchedulerPair: {
|
|
165
|
-
new(): ConcurrentExclusiveSchedulerPair
|
|
166
|
-
new(taskScheduler: TaskScheduler): ConcurrentExclusiveSchedulerPair
|
|
167
|
-
new(taskScheduler: TaskScheduler, maxConcurrencyLevel: int): ConcurrentExclusiveSchedulerPair
|
|
168
|
-
new(taskScheduler: TaskScheduler, maxConcurrencyLevel: int, maxItemsPerTask: int): ConcurrentExclusiveSchedulerPair
|
|
165
|
+
new(): ConcurrentExclusiveSchedulerPair;
|
|
166
|
+
new(taskScheduler: TaskScheduler): ConcurrentExclusiveSchedulerPair;
|
|
167
|
+
new(taskScheduler: TaskScheduler, maxConcurrencyLevel: int): ConcurrentExclusiveSchedulerPair;
|
|
168
|
+
new(taskScheduler: TaskScheduler, maxConcurrencyLevel: int, maxItemsPerTask: int): ConcurrentExclusiveSchedulerPair;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
|
|
@@ -182,7 +182,7 @@ export interface ParallelLoopState$instance {
|
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
export const ParallelLoopState: {
|
|
185
|
-
new(): ParallelLoopState
|
|
185
|
+
new(): ParallelLoopState;
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
|
|
@@ -196,14 +196,14 @@ export interface ParallelOptions$instance {
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
export const ParallelOptions: {
|
|
199
|
-
new(): ParallelOptions
|
|
199
|
+
new(): ParallelOptions;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
202
|
|
|
203
203
|
export type ParallelOptions = ParallelOptions$instance;
|
|
204
204
|
|
|
205
205
|
export interface Task$instance {
|
|
206
|
-
readonly asyncState: unknown;
|
|
206
|
+
readonly asyncState: unknown | undefined;
|
|
207
207
|
readonly creationOptions: TaskCreationOptions;
|
|
208
208
|
readonly exception: AggregateException;
|
|
209
209
|
readonly id: int;
|
|
@@ -219,21 +219,21 @@ export interface Task$instance {
|
|
|
219
219
|
continueWith(continuationAction: Action_1<Task>, scheduler: TaskScheduler): Task;
|
|
220
220
|
continueWith(continuationAction: Action_1<Task>, continuationOptions: TaskContinuationOptions): Task;
|
|
221
221
|
continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
222
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown): Task;
|
|
223
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken): Task;
|
|
224
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, scheduler: TaskScheduler): Task;
|
|
225
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
|
|
226
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
222
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined): Task;
|
|
223
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
|
|
224
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
|
|
225
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
|
|
226
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
227
227
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>): Task_1<TResult>;
|
|
228
228
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
229
229
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, scheduler: TaskScheduler): Task_1<TResult>;
|
|
230
230
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
231
231
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
232
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown): Task_1<TResult>;
|
|
233
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
234
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, scheduler: TaskScheduler): Task_1<TResult>;
|
|
235
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
236
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
232
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
|
|
233
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
234
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TResult>;
|
|
235
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
236
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
237
237
|
dispose(): void;
|
|
238
238
|
getAwaiter(): TaskAwaiter;
|
|
239
239
|
runSynchronously(): void;
|
|
@@ -255,14 +255,14 @@ export interface Task$instance {
|
|
|
255
255
|
|
|
256
256
|
|
|
257
257
|
export const Task: {
|
|
258
|
-
new(action: Action): Task
|
|
259
|
-
new(action: Action, cancellationToken: CancellationToken): Task
|
|
260
|
-
new(action: Action, creationOptions: TaskCreationOptions): Task
|
|
261
|
-
new(action: Action, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task
|
|
262
|
-
new(action: Action_1<unknown>, state: unknown): Task
|
|
263
|
-
new(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken): Task
|
|
264
|
-
new(action: Action_1<unknown>, state: unknown, creationOptions: TaskCreationOptions): Task
|
|
265
|
-
new(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task
|
|
258
|
+
new(action: Action): Task;
|
|
259
|
+
new(action: Action, cancellationToken: CancellationToken): Task;
|
|
260
|
+
new(action: Action, creationOptions: TaskCreationOptions): Task;
|
|
261
|
+
new(action: Action, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task;
|
|
262
|
+
new(action: Action_1<unknown | undefined>, state: unknown): Task;
|
|
263
|
+
new(action: Action_1<unknown | undefined>, state: unknown, cancellationToken: CancellationToken): Task;
|
|
264
|
+
new(action: Action_1<unknown | undefined>, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
265
|
+
new(action: Action_1<unknown | undefined>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task;
|
|
266
266
|
readonly currentId: Nullable_1<System_Internal.Int32>;
|
|
267
267
|
readonly factory: TaskFactory;
|
|
268
268
|
readonly completedTask: Task;
|
|
@@ -281,8 +281,8 @@ export const Task: {
|
|
|
281
281
|
run<TResult>(function_: Func_1<TResult>): Task_1<TResult>;
|
|
282
282
|
run(action: Action, cancellationToken: CancellationToken): Task;
|
|
283
283
|
run(action: Action): Task;
|
|
284
|
-
run(function_: Func_1<Task>, cancellationToken: CancellationToken): Task;
|
|
285
|
-
run(function_: Func_1<Task>): Task;
|
|
284
|
+
run(function_: Func_1<Task | undefined>, cancellationToken: CancellationToken): Task;
|
|
285
|
+
run(function_: Func_1<Task | undefined>): Task;
|
|
286
286
|
waitAll(tasks: IEnumerable_1<Task>, cancellationToken?: CancellationToken): void;
|
|
287
287
|
waitAll(tasks: ReadOnlySpan_1<Task>): void;
|
|
288
288
|
waitAll(tasks: Task[], millisecondsTimeout: int, cancellationToken: CancellationToken): boolean;
|
|
@@ -334,46 +334,36 @@ export interface Task_1$instance<TResult> extends Task$instance {
|
|
|
334
334
|
configureAwait(options: ConfigureAwaitOptions): ConfiguredTaskAwaitable_1<TResult>;
|
|
335
335
|
configureAwait(continueOnCapturedContext: boolean): ConfiguredTaskAwaitable;
|
|
336
336
|
configureAwait(options: ConfigureAwaitOptions): ConfiguredTaskAwaitable;
|
|
337
|
-
continueWith(continuationAction: Action_1<Task_1<TResult>>): Task;
|
|
338
|
-
continueWith(continuationAction: Action_1<Task_1<TResult>>, cancellationToken: CancellationToken): Task;
|
|
339
337
|
continueWith(continuationAction: Action_1<Task_1<TResult>>, scheduler: TaskScheduler): Task;
|
|
340
338
|
continueWith(continuationAction: Action_1<Task_1<TResult>>, continuationOptions: TaskContinuationOptions): Task;
|
|
341
|
-
continueWith(continuationAction:
|
|
342
|
-
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown): Task;
|
|
343
|
-
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown,
|
|
344
|
-
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown, scheduler: TaskScheduler): Task;
|
|
345
|
-
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
|
|
346
|
-
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
347
|
-
continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>): Task_1<TNewResult>;
|
|
348
|
-
continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>, cancellationToken: CancellationToken): Task_1<TNewResult>;
|
|
339
|
+
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined): Task;
|
|
340
|
+
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
|
|
341
|
+
continueWith(continuationAction: Action_2<Task_1<TResult>, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
|
|
349
342
|
continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>, scheduler: TaskScheduler): Task_1<TNewResult>;
|
|
350
343
|
continueWith<TNewResult>(continuationFunction: Func_2<Task_1<TResult>, TNewResult>, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
|
|
351
|
-
continueWith<TNewResult>(continuationFunction:
|
|
352
|
-
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown): Task_1<TNewResult>;
|
|
353
|
-
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown,
|
|
354
|
-
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown, scheduler: TaskScheduler): Task_1<TNewResult>;
|
|
355
|
-
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
|
|
356
|
-
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown, TNewResult>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TNewResult>;
|
|
344
|
+
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown): Task_1<TNewResult>;
|
|
345
|
+
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TNewResult>;
|
|
346
|
+
continueWith<TNewResult>(continuationFunction: Func_3<Task_1<TResult>, unknown | undefined, TNewResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TNewResult>;
|
|
357
347
|
continueWith(continuationAction: Action_1<Task>): Task;
|
|
358
348
|
continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken): Task;
|
|
359
349
|
continueWith(continuationAction: Action_1<Task>, scheduler: TaskScheduler): Task;
|
|
360
350
|
continueWith(continuationAction: Action_1<Task>, continuationOptions: TaskContinuationOptions): Task;
|
|
361
351
|
continueWith(continuationAction: Action_1<Task>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
362
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown): Task;
|
|
363
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken): Task;
|
|
364
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, scheduler: TaskScheduler): Task;
|
|
365
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, continuationOptions: TaskContinuationOptions): Task;
|
|
366
|
-
continueWith(continuationAction: Action_2<Task, unknown>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
352
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined): Task;
|
|
353
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
|
|
354
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, scheduler: TaskScheduler): Task;
|
|
355
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, continuationOptions: TaskContinuationOptions): Task;
|
|
356
|
+
continueWith(continuationAction: Action_2<Task, unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task;
|
|
367
357
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>): Task_1<TResult>;
|
|
368
358
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
369
359
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, scheduler: TaskScheduler): Task_1<TResult>;
|
|
370
360
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
371
361
|
continueWith<TResult>(continuationFunction: Func_2<Task, TResult>, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
372
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown): Task_1<TResult>;
|
|
373
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
374
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, scheduler: TaskScheduler): Task_1<TResult>;
|
|
375
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
376
|
-
continueWith<TResult>(continuationFunction: Func_3<Task, unknown, TResult>, state: unknown, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
362
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
|
|
363
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
364
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, scheduler: TaskScheduler): Task_1<TResult>;
|
|
365
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
366
|
+
continueWith<TResult>(continuationFunction: Func_3<Task, unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
377
367
|
dispose(): void;
|
|
378
368
|
getAwaiter(): TaskAwaiter;
|
|
379
369
|
waitAsync(timeout: TimeSpan): Task_1<TResult>;
|
|
@@ -387,14 +377,14 @@ export interface Task_1$instance<TResult> extends Task$instance {
|
|
|
387
377
|
|
|
388
378
|
|
|
389
379
|
export const Task_1: {
|
|
390
|
-
new<TResult>(function_: Func_1<TResult>): Task_1
|
|
391
|
-
new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1
|
|
392
|
-
new<TResult>(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1
|
|
393
|
-
new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1
|
|
394
|
-
new<TResult>(function_: Func_2<unknown, TResult>, state: unknown): Task_1
|
|
395
|
-
new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1
|
|
396
|
-
new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1
|
|
397
|
-
new<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1
|
|
380
|
+
new<TResult>(function_: Func_1<TResult>): Task_1<TResult>;
|
|
381
|
+
new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
382
|
+
new<TResult>(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
383
|
+
new<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
384
|
+
new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
|
|
385
|
+
new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
386
|
+
new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
387
|
+
new<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
398
388
|
};
|
|
399
389
|
|
|
400
390
|
|
|
@@ -415,11 +405,11 @@ export interface TaskCanceledException$instance extends OperationCanceledExcepti
|
|
|
415
405
|
|
|
416
406
|
|
|
417
407
|
export const TaskCanceledException: {
|
|
418
|
-
new(): TaskCanceledException
|
|
419
|
-
new(message: string): TaskCanceledException
|
|
420
|
-
new(message: string, innerException: Exception): TaskCanceledException
|
|
421
|
-
new(message: string, innerException: Exception, token: CancellationToken): TaskCanceledException
|
|
422
|
-
new(task: Task): TaskCanceledException
|
|
408
|
+
new(): TaskCanceledException;
|
|
409
|
+
new(message: string | undefined): TaskCanceledException;
|
|
410
|
+
new(message: string | undefined, innerException: Exception | undefined): TaskCanceledException;
|
|
411
|
+
new(message: string | undefined, innerException: Exception | undefined, token: CancellationToken): TaskCanceledException;
|
|
412
|
+
new(task: Task | undefined): TaskCanceledException;
|
|
423
413
|
};
|
|
424
414
|
|
|
425
415
|
|
|
@@ -448,10 +438,10 @@ export interface TaskCompletionSource$instance {
|
|
|
448
438
|
|
|
449
439
|
|
|
450
440
|
export const TaskCompletionSource: {
|
|
451
|
-
new(): TaskCompletionSource
|
|
452
|
-
new(creationOptions: TaskCreationOptions): TaskCompletionSource
|
|
453
|
-
new(state: unknown): TaskCompletionSource
|
|
454
|
-
new(state: unknown, creationOptions: TaskCreationOptions): TaskCompletionSource
|
|
441
|
+
new(): TaskCompletionSource;
|
|
442
|
+
new(creationOptions: TaskCreationOptions): TaskCompletionSource;
|
|
443
|
+
new(state: unknown): TaskCompletionSource;
|
|
444
|
+
new(state: unknown, creationOptions: TaskCreationOptions): TaskCompletionSource;
|
|
455
445
|
};
|
|
456
446
|
|
|
457
447
|
|
|
@@ -475,10 +465,10 @@ export interface TaskCompletionSource_1$instance<TResult> {
|
|
|
475
465
|
|
|
476
466
|
|
|
477
467
|
export const TaskCompletionSource_1: {
|
|
478
|
-
new<TResult>(): TaskCompletionSource_1
|
|
479
|
-
new<TResult>(creationOptions: TaskCreationOptions): TaskCompletionSource_1
|
|
480
|
-
new<TResult>(state: unknown): TaskCompletionSource_1
|
|
481
|
-
new<TResult>(state: unknown, creationOptions: TaskCreationOptions): TaskCompletionSource_1
|
|
468
|
+
new<TResult>(): TaskCompletionSource_1<TResult>;
|
|
469
|
+
new<TResult>(creationOptions: TaskCreationOptions): TaskCompletionSource_1<TResult>;
|
|
470
|
+
new<TResult>(state: unknown): TaskCompletionSource_1<TResult>;
|
|
471
|
+
new<TResult>(state: unknown, creationOptions: TaskCreationOptions): TaskCompletionSource_1<TResult>;
|
|
482
472
|
};
|
|
483
473
|
|
|
484
474
|
|
|
@@ -488,7 +478,7 @@ export interface TaskFactory$instance {
|
|
|
488
478
|
readonly cancellationToken: CancellationToken;
|
|
489
479
|
readonly continuationOptions: TaskContinuationOptions;
|
|
490
480
|
readonly creationOptions: TaskCreationOptions;
|
|
491
|
-
readonly scheduler: TaskScheduler;
|
|
481
|
+
readonly scheduler: TaskScheduler | undefined;
|
|
492
482
|
continueWhenAll(tasks: Task[], continuationAction: Action_1<Task[]>): Task;
|
|
493
483
|
continueWhenAll(tasks: Task[], continuationAction: Action_1<Task[]>, cancellationToken: CancellationToken): Task;
|
|
494
484
|
continueWhenAll(tasks: Task[], continuationAction: Action_1<Task[]>, continuationOptions: TaskContinuationOptions): Task;
|
|
@@ -524,50 +514,50 @@ export interface TaskFactory$instance {
|
|
|
524
514
|
fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>): Task;
|
|
525
515
|
fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>, creationOptions: TaskCreationOptions): Task;
|
|
526
516
|
fromAsync(asyncResult: IAsyncResult, endMethod: Action_1<IAsyncResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
|
|
527
|
-
fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown): Task;
|
|
528
|
-
fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
529
|
-
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown): Task;
|
|
530
|
-
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
531
|
-
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task;
|
|
532
|
-
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
533
|
-
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task;
|
|
534
|
-
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
517
|
+
fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown | undefined): Task;
|
|
518
|
+
fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
|
|
519
|
+
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown | undefined): Task;
|
|
520
|
+
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
|
|
521
|
+
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task;
|
|
522
|
+
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
|
|
523
|
+
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task;
|
|
524
|
+
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Action_1<IAsyncResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
|
|
535
525
|
fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>): Task_1<TResult>;
|
|
536
526
|
fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
537
527
|
fromAsync<TResult>(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
538
|
-
fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown): Task_1<TResult>;
|
|
539
|
-
fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
540
|
-
fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown): Task_1<TResult>;
|
|
541
|
-
fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
542
|
-
fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task_1<TResult>;
|
|
543
|
-
fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
544
|
-
fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task_1<TResult>;
|
|
545
|
-
fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
528
|
+
fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined): Task_1<TResult>;
|
|
529
|
+
fromAsync<TResult>(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
530
|
+
fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined): Task_1<TResult>;
|
|
531
|
+
fromAsync<TArg1, TResult>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
532
|
+
fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task_1<TResult>;
|
|
533
|
+
fromAsync<TArg1, TArg2, TResult>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
534
|
+
fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task_1<TResult>;
|
|
535
|
+
fromAsync<TArg1, TArg2, TArg3, TResult>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
546
536
|
startNew(action: Action): Task;
|
|
547
537
|
startNew(action: Action, cancellationToken: CancellationToken): Task;
|
|
548
538
|
startNew(action: Action, creationOptions: TaskCreationOptions): Task;
|
|
549
539
|
startNew(action: Action, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
|
|
550
|
-
startNew(action: Action_1<unknown>, state: unknown): Task;
|
|
551
|
-
startNew(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken): Task;
|
|
552
|
-
startNew(action: Action_1<unknown>, state: unknown, creationOptions: TaskCreationOptions): Task;
|
|
553
|
-
startNew(action: Action_1<unknown>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
|
|
540
|
+
startNew(action: Action_1<unknown | undefined>, state: unknown | undefined): Task;
|
|
541
|
+
startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken): Task;
|
|
542
|
+
startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task;
|
|
543
|
+
startNew(action: Action_1<unknown | undefined>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task;
|
|
554
544
|
startNew<TResult>(function_: Func_1<TResult>): Task_1<TResult>;
|
|
555
545
|
startNew<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
556
546
|
startNew<TResult>(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
557
547
|
startNew<TResult>(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
558
|
-
startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown): Task_1<TResult>;
|
|
559
|
-
startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
560
|
-
startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
561
|
-
startNew<TResult>(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
548
|
+
startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown): Task_1<TResult>;
|
|
549
|
+
startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
550
|
+
startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
551
|
+
startNew<TResult>(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
562
552
|
}
|
|
563
553
|
|
|
564
554
|
|
|
565
555
|
export const TaskFactory: {
|
|
566
|
-
new(): TaskFactory
|
|
567
|
-
new(cancellationToken: CancellationToken): TaskFactory
|
|
568
|
-
new(scheduler: TaskScheduler): TaskFactory
|
|
569
|
-
new(creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions): TaskFactory
|
|
570
|
-
new(cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): TaskFactory
|
|
556
|
+
new(): TaskFactory;
|
|
557
|
+
new(cancellationToken: CancellationToken): TaskFactory;
|
|
558
|
+
new(scheduler: TaskScheduler): TaskFactory;
|
|
559
|
+
new(creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions): TaskFactory;
|
|
560
|
+
new(cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): TaskFactory;
|
|
571
561
|
};
|
|
572
562
|
|
|
573
563
|
|
|
@@ -577,7 +567,7 @@ export interface TaskFactory_1$instance<TResult> {
|
|
|
577
567
|
readonly cancellationToken: CancellationToken;
|
|
578
568
|
readonly continuationOptions: TaskContinuationOptions;
|
|
579
569
|
readonly creationOptions: TaskCreationOptions;
|
|
580
|
-
readonly scheduler: TaskScheduler;
|
|
570
|
+
readonly scheduler: TaskScheduler | undefined;
|
|
581
571
|
continueWhenAll(tasks: Task[], continuationFunction: Func_2<Task[], TResult>): Task_1<TResult>;
|
|
582
572
|
continueWhenAll(tasks: Task[], continuationFunction: Func_2<Task[], TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
583
573
|
continueWhenAll(tasks: Task[], continuationFunction: Func_2<Task[], TResult>, continuationOptions: TaskContinuationOptions): Task_1<TResult>;
|
|
@@ -597,31 +587,31 @@ export interface TaskFactory_1$instance<TResult> {
|
|
|
597
587
|
fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>): Task_1<TResult>;
|
|
598
588
|
fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
599
589
|
fromAsync(asyncResult: IAsyncResult, endMethod: Func_2<IAsyncResult, TResult>, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
600
|
-
fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown): Task_1<TResult>;
|
|
601
|
-
fromAsync(beginMethod: Func_3<AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
602
|
-
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown): Task_1<TResult>;
|
|
603
|
-
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
604
|
-
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown): Task_1<TResult>;
|
|
605
|
-
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
606
|
-
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown): Task_1<TResult>;
|
|
607
|
-
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
590
|
+
fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined): Task_1<TResult>;
|
|
591
|
+
fromAsync(beginMethod: Func_3<AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
592
|
+
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined): Task_1<TResult>;
|
|
593
|
+
fromAsync<TArg1>(beginMethod: Func_4<TArg1, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
594
|
+
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined): Task_1<TResult>;
|
|
595
|
+
fromAsync<TArg1, TArg2>(beginMethod: Func_5<TArg1, TArg2, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
596
|
+
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined): Task_1<TResult>;
|
|
597
|
+
fromAsync<TArg1, TArg2, TArg3>(beginMethod: Func_6<TArg1, TArg2, TArg3, AsyncCallback, unknown | undefined, IAsyncResult>, endMethod: Func_2<IAsyncResult, TResult>, arg1: TArg1, arg2: TArg2, arg3: TArg3, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
608
598
|
startNew(function_: Func_1<TResult>): Task_1<TResult>;
|
|
609
599
|
startNew(function_: Func_1<TResult>, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
610
600
|
startNew(function_: Func_1<TResult>, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
611
601
|
startNew(function_: Func_1<TResult>, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
612
|
-
startNew(function_: Func_2<unknown, TResult>, state: unknown): Task_1<TResult>;
|
|
613
|
-
startNew(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
614
|
-
startNew(function_: Func_2<unknown, TResult>, state: unknown, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
615
|
-
startNew(function_: Func_2<unknown, TResult>, state: unknown, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
602
|
+
startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined): Task_1<TResult>;
|
|
603
|
+
startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken): Task_1<TResult>;
|
|
604
|
+
startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, creationOptions: TaskCreationOptions): Task_1<TResult>;
|
|
605
|
+
startNew(function_: Func_2<unknown | undefined, TResult>, state: unknown | undefined, cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, scheduler: TaskScheduler): Task_1<TResult>;
|
|
616
606
|
}
|
|
617
607
|
|
|
618
608
|
|
|
619
609
|
export const TaskFactory_1: {
|
|
620
|
-
new<TResult>(): TaskFactory_1
|
|
621
|
-
new<TResult>(cancellationToken: CancellationToken): TaskFactory_1
|
|
622
|
-
new<TResult>(scheduler: TaskScheduler): TaskFactory_1
|
|
623
|
-
new<TResult>(creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions): TaskFactory_1
|
|
624
|
-
new<TResult>(cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): TaskFactory_1
|
|
610
|
+
new<TResult>(): TaskFactory_1<TResult>;
|
|
611
|
+
new<TResult>(cancellationToken: CancellationToken): TaskFactory_1<TResult>;
|
|
612
|
+
new<TResult>(scheduler: TaskScheduler): TaskFactory_1<TResult>;
|
|
613
|
+
new<TResult>(creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions): TaskFactory_1<TResult>;
|
|
614
|
+
new<TResult>(cancellationToken: CancellationToken, creationOptions: TaskCreationOptions, continuationOptions: TaskContinuationOptions, scheduler: TaskScheduler): TaskFactory_1<TResult>;
|
|
625
615
|
};
|
|
626
616
|
|
|
627
617
|
|
|
@@ -643,15 +633,15 @@ export const TaskScheduler: {
|
|
|
643
633
|
export type TaskScheduler = TaskScheduler$instance;
|
|
644
634
|
|
|
645
635
|
export interface TaskSchedulerException$instance extends Exception {
|
|
646
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
636
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
647
637
|
}
|
|
648
638
|
|
|
649
639
|
|
|
650
640
|
export const TaskSchedulerException: {
|
|
651
|
-
new(): TaskSchedulerException
|
|
652
|
-
new(message: string): TaskSchedulerException
|
|
653
|
-
new(innerException: Exception): TaskSchedulerException
|
|
654
|
-
new(message: string, innerException: Exception): TaskSchedulerException
|
|
641
|
+
new(): TaskSchedulerException;
|
|
642
|
+
new(message: string | undefined): TaskSchedulerException;
|
|
643
|
+
new(innerException: Exception | undefined): TaskSchedulerException;
|
|
644
|
+
new(message: string | undefined, innerException: Exception | undefined): TaskSchedulerException;
|
|
655
645
|
};
|
|
656
646
|
|
|
657
647
|
|
|
@@ -670,7 +660,7 @@ export interface UnobservedTaskExceptionEventArgs$instance extends EventArgs {
|
|
|
670
660
|
|
|
671
661
|
|
|
672
662
|
export const UnobservedTaskExceptionEventArgs: {
|
|
673
|
-
new(exception: AggregateException): UnobservedTaskExceptionEventArgs
|
|
663
|
+
new(exception: AggregateException): UnobservedTaskExceptionEventArgs;
|
|
674
664
|
};
|
|
675
665
|
|
|
676
666
|
|
|
@@ -744,7 +734,7 @@ export abstract class TaskExtensions$instance {
|
|
|
744
734
|
export type TaskExtensions = TaskExtensions$instance;
|
|
745
735
|
|
|
746
736
|
export abstract class TaskToAsyncResult$instance {
|
|
747
|
-
static begin(task: Task, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
737
|
+
static begin(task: Task, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
748
738
|
static end(asyncResult: IAsyncResult): void;
|
|
749
739
|
static end<TResult>(asyncResult: IAsyncResult): TResult;
|
|
750
740
|
static unwrap(asyncResult: IAsyncResult): Task;
|