@tsonic/dotnet 10.0.39 → 10.0.41
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/Internal/internal/index.d.ts +4 -3
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
- package/Microsoft.Win32/internal/index.d.ts +19 -18
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
- package/README.md +76 -104
- package/System/bindings.json +1520 -2039
- package/System/internal/index.d.ts +1549 -1602
- package/System.Buffers/bindings.json +12 -3
- package/System.Buffers/internal/index.d.ts +12 -14
- package/System.Buffers.Binary/internal/index.d.ts +2 -4
- package/System.Buffers.Text/internal/index.d.ts +2 -4
- package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
- package/System.Collections/internal/index.d.ts +129 -131
- package/System.Collections.Concurrent/bindings.json +218 -218
- package/System.Collections.Concurrent/internal/index.d.ts +34 -36
- package/System.Collections.Frozen/bindings.json +413 -611
- package/System.Collections.Frozen/internal/index.d.ts +81 -97
- package/System.Collections.Frozen.d.ts +14 -2
- package/System.Collections.Generic/bindings.json +9420 -14155
- package/System.Collections.Generic/internal/index.d.ts +547 -758
- package/System.Collections.Generic.d.ts +1 -1
- package/System.Collections.Immutable/bindings.json +6000 -9080
- package/System.Collections.Immutable/internal/index.d.ts +265 -354
- package/System.Collections.Immutable.d.ts +49 -12
- package/System.Collections.ObjectModel/bindings.json +132 -654
- package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
- package/System.Collections.Specialized/bindings.json +0 -123
- package/System.Collections.Specialized/internal/index.d.ts +88 -101
- package/System.ComponentModel/bindings.json +163 -102
- package/System.ComponentModel/internal/index.d.ts +618 -608
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
- package/System.ComponentModel.Design/bindings.json +22 -292
- package/System.ComponentModel.Design/internal/index.d.ts +101 -109
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
- package/System.ComponentModel.d.ts +1 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
- package/System.Data/bindings.json +4 -1
- package/System.Data/internal/index.d.ts +351 -350
- package/System.Data.Common/internal/index.d.ts +151 -152
- package/System.Data.SqlTypes/internal/index.d.ts +68 -67
- package/System.Diagnostics/bindings.json +7044 -7249
- package/System.Diagnostics/internal/index.d.ts +446 -461
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
- package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
- package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
- package/System.Diagnostics.Metrics.d.ts +1 -1
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
- package/System.Diagnostics.Tracing/bindings.json +81 -21
- package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
- package/System.Diagnostics.Tracing.d.ts +2 -1
- package/System.Drawing/internal/index.d.ts +76 -75
- package/System.Dynamic/internal/index.d.ts +55 -57
- package/System.Formats.Asn1/bindings.json +48 -69
- package/System.Formats.Asn1/internal/index.d.ts +21 -28
- package/System.Formats.Tar/internal/index.d.ts +8 -7
- package/System.Globalization/internal/index.d.ts +40 -42
- package/System.IO/internal/index.d.ts +187 -189
- package/System.IO.Compression/internal/index.d.ts +29 -31
- package/System.IO.Enumeration/bindings.json +250 -250
- package/System.IO.Enumeration/internal/index.d.ts +15 -17
- package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
- package/System.IO.Pipelines/internal/index.d.ts +15 -17
- package/System.IO.Pipes/internal/index.d.ts +8 -7
- package/System.Linq/internal/index.d.ts +223 -225
- package/System.Linq.Expressions/internal/index.d.ts +205 -207
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
- package/System.Net/bindings.json +104 -104
- package/System.Net/internal/index.d.ts +279 -281
- package/System.Net.Cache/internal/index.d.ts +3 -2
- package/System.Net.Http/internal/index.d.ts +128 -130
- package/System.Net.Http.Headers/bindings.json +0 -204
- package/System.Net.Http.Headers/internal/index.d.ts +111 -127
- package/System.Net.Http.Json/internal/index.d.ts +67 -69
- package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
- package/System.Net.Mail/internal/index.d.ts +76 -78
- package/System.Net.Mime/internal/index.d.ts +11 -10
- package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
- package/System.Net.Quic/internal/index.d.ts +10 -9
- package/System.Net.Security/internal/index.d.ts +87 -89
- package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
- package/System.Net.Sockets/internal/index.d.ts +91 -93
- package/System.Net.WebSockets/internal/index.d.ts +47 -46
- package/System.Numerics/bindings.json +544 -116
- package/System.Numerics/internal/index.d.ts +110 -112
- package/System.Reflection/internal/index.d.ts +270 -272
- package/System.Reflection.Emit/internal/index.d.ts +114 -116
- package/System.Reflection.Metadata/bindings.json +166 -3169
- package/System.Reflection.Metadata/internal/index.d.ts +154 -361
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
- package/System.Reflection.PortableExecutable/bindings.json +58 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
- package/System.Reflection.PortableExecutable.d.ts +1 -0
- package/System.Resources/internal/index.d.ts +33 -35
- package/System.Runtime/internal/index.d.ts +12 -11
- package/System.Runtime.CompilerServices/bindings.json +519 -717
- package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
- package/System.Runtime.CompilerServices.d.ts +14 -4
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
- package/System.Runtime.InteropServices/bindings.json +101 -101
- package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
- package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
- package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
- package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.Swift.d.ts +1 -1
- package/System.Runtime.Intrinsics/bindings.json +64 -16
- package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
- package/System.Runtime.Loader/bindings.json +48 -69
- package/System.Runtime.Loader/internal/index.d.ts +30 -34
- package/System.Runtime.Remoting/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization/internal/index.d.ts +175 -177
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
- package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
- package/System.Runtime.Versioning/internal/index.d.ts +20 -19
- package/System.Security/internal/index.d.ts +64 -66
- package/System.Security.AccessControl/bindings.json +104 -0
- package/System.Security.AccessControl/internal/index.d.ts +59 -58
- package/System.Security.AccessControl.d.ts +6 -5
- package/System.Security.Authentication/internal/index.d.ts +7 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
- package/System.Security.Claims/internal/index.d.ts +45 -44
- package/System.Security.Cryptography/bindings.json +469 -469
- package/System.Security.Cryptography/internal/index.d.ts +269 -271
- package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
- package/System.Security.Permissions/internal/index.d.ts +5 -4
- package/System.Security.Policy/internal/index.d.ts +11 -10
- package/System.Security.Principal/internal/index.d.ts +28 -27
- package/System.Text/bindings.json +1562 -1562
- package/System.Text/internal/index.d.ts +119 -121
- package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
- package/System.Text.Json/bindings.json +0 -290
- package/System.Text.Json/internal/index.d.ts +135 -153
- package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
- package/System.Text.Json.Schema/internal/index.d.ts +9 -8
- package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
- package/System.Text.Json.Serialization.d.ts +1 -1
- package/System.Text.RegularExpressions/bindings.json +198 -402
- package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
- package/System.Text.Unicode/bindings.json +508 -508
- package/System.Text.Unicode/internal/index.d.ts +29 -31
- package/System.Threading/bindings.json +42 -42
- package/System.Threading/internal/index.d.ts +157 -159
- package/System.Threading.Channels/internal/index.d.ts +10 -12
- package/System.Threading.Tasks/bindings.json +4 -1
- package/System.Threading.Tasks/internal/index.d.ts +115 -114
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
- package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
- package/System.Timers/internal/index.d.ts +8 -7
- package/System.Transactions/internal/index.d.ts +31 -30
- package/System.Web/internal/index.d.ts +32 -31
- package/System.Windows.Input/internal/index.d.ts +5 -4
- package/System.Windows.Markup/internal/index.d.ts +3 -2
- package/System.Xml/internal/index.d.ts +383 -385
- package/System.Xml.Linq/internal/index.d.ts +103 -102
- package/System.Xml.Resolvers/internal/index.d.ts +10 -9
- package/System.Xml.Schema/bindings.json +76 -76
- package/System.Xml.Schema/internal/index.d.ts +233 -232
- package/System.Xml.Serialization/bindings.json +193 -0
- package/System.Xml.Serialization/internal/index.d.ts +277 -245
- package/System.Xml.Serialization.d.ts +2 -0
- package/System.Xml.XPath/internal/index.d.ts +46 -45
- package/System.Xml.Xsl/internal/index.d.ts +53 -52
- package/System.Xml.Xsl.Runtime/bindings.json +4 -1
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
- package/System.d.ts +2 -2
- package/__internal/extensions/index.d.ts +517 -515
- package/families.json +63 -7
- package/package.json +2 -2
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Threading
|
|
3
3
|
// Assembly: System.Private.CoreLib, System.Threading, System.Threading.AccessControl
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
|
-
// Import support types from @tsonic/core
|
|
9
|
-
import type { ptr } from "@tsonic/core/types.js";
|
|
10
8
|
|
|
11
9
|
// Import types from other namespaces
|
|
12
10
|
import type { SafeWaitHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
|
|
@@ -74,31 +72,31 @@ export enum ThreadState {
|
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
77
|
-
export type ContextCallback = (state:
|
|
75
|
+
export type ContextCallback = (state: JsValue | null) => void;
|
|
78
76
|
|
|
79
77
|
|
|
80
78
|
export type IOCompletionCallback = (errorCode: uint, numBytes: uint, pOVERLAP: ptr<NativeOverlapped>) => void;
|
|
81
79
|
|
|
82
80
|
|
|
83
|
-
export type ParameterizedThreadStart = (obj:
|
|
81
|
+
export type ParameterizedThreadStart = (obj: JsValue | null) => void;
|
|
84
82
|
|
|
85
83
|
|
|
86
|
-
export type SendOrPostCallback = (state:
|
|
84
|
+
export type SendOrPostCallback = (state: JsValue | null) => void;
|
|
87
85
|
|
|
88
86
|
|
|
89
|
-
export type ThreadExceptionEventHandler = (sender:
|
|
87
|
+
export type ThreadExceptionEventHandler = (sender: JsValue, e: ThreadExceptionEventArgs) => void;
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
export type ThreadStart = () => void;
|
|
93
91
|
|
|
94
92
|
|
|
95
|
-
export type TimerCallback = (state:
|
|
93
|
+
export type TimerCallback = (state: JsValue | null) => void;
|
|
96
94
|
|
|
97
95
|
|
|
98
|
-
export type WaitCallback = (state:
|
|
96
|
+
export type WaitCallback = (state: JsValue | null) => void;
|
|
99
97
|
|
|
100
98
|
|
|
101
|
-
export type WaitOrTimerCallback = (state:
|
|
99
|
+
export type WaitOrTimerCallback = (state: JsValue | null, timedOut: boolean) => void;
|
|
102
100
|
|
|
103
101
|
|
|
104
102
|
export interface IThreadPoolWorkItem$instance {
|
|
@@ -130,7 +128,7 @@ export interface AsyncFlowControl$instance extends System_Internal.IDisposable$i
|
|
|
130
128
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
131
129
|
|
|
132
130
|
Dispose(): void;
|
|
133
|
-
Equals(obj:
|
|
131
|
+
Equals(obj: JsValue | null): boolean;
|
|
134
132
|
Equals(obj: AsyncFlowControl): boolean;
|
|
135
133
|
GetHashCode(): int;
|
|
136
134
|
Undo(): void;
|
|
@@ -156,8 +154,8 @@ export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$vi
|
|
|
156
154
|
export interface AsyncLocalValueChangedArgs_1$instance<T> {
|
|
157
155
|
readonly __tsonic_type_System_Threading_AsyncLocalValueChangedArgs_1: never;
|
|
158
156
|
|
|
159
|
-
readonly CurrentValue: T |
|
|
160
|
-
readonly PreviousValue: T |
|
|
157
|
+
readonly CurrentValue: T | null;
|
|
158
|
+
readonly PreviousValue: T | null;
|
|
161
159
|
readonly ThreadContextChanged: boolean;
|
|
162
160
|
}
|
|
163
161
|
|
|
@@ -178,16 +176,16 @@ export interface CancellationToken$instance {
|
|
|
178
176
|
readonly IsCancellationRequested: boolean;
|
|
179
177
|
readonly WaitHandle: WaitHandle;
|
|
180
178
|
Equals(other: CancellationToken): boolean;
|
|
181
|
-
Equals(other:
|
|
179
|
+
Equals(other: JsValue | null): boolean;
|
|
182
180
|
GetHashCode(): int;
|
|
183
181
|
Register(callback: Action): CancellationTokenRegistration;
|
|
184
182
|
Register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
185
|
-
Register(callback: Action_1<
|
|
186
|
-
Register(callback: Action_2<
|
|
187
|
-
Register(callback: Action_1<
|
|
183
|
+
Register(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
|
|
184
|
+
Register(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
|
|
185
|
+
Register(callback: Action_1<JsValue | null>, state: JsValue | null, useSynchronizationContext: boolean): CancellationTokenRegistration;
|
|
188
186
|
ThrowIfCancellationRequested(): void;
|
|
189
|
-
UnsafeRegister(callback: Action_1<
|
|
190
|
-
UnsafeRegister(callback: Action_2<
|
|
187
|
+
UnsafeRegister(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
|
|
188
|
+
UnsafeRegister(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
|
|
@@ -217,7 +215,7 @@ export interface CancellationTokenRegistration$instance extends System_Internal.
|
|
|
217
215
|
readonly Token: CancellationToken;
|
|
218
216
|
Dispose(): void;
|
|
219
217
|
DisposeAsync(): ValueTask;
|
|
220
|
-
Equals(obj:
|
|
218
|
+
Equals(obj: JsValue | null): boolean;
|
|
221
219
|
Equals(other: CancellationTokenRegistration): boolean;
|
|
222
220
|
GetHashCode(): int;
|
|
223
221
|
Unregister(): boolean;
|
|
@@ -241,26 +239,12 @@ export interface __CancellationTokenRegistration$views {
|
|
|
241
239
|
export type CancellationTokenRegistration = CancellationTokenRegistration$instance & __CancellationTokenRegistration$views;
|
|
242
240
|
|
|
243
241
|
|
|
244
|
-
export interface Lock_Scope$instance {
|
|
245
|
-
readonly __tsonic_type_System_Threading_Lock_Scope: never;
|
|
246
|
-
|
|
247
|
-
Dispose(): void;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
export const Lock_Scope: {
|
|
252
|
-
new(): Lock_Scope;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
export type Lock_Scope = Lock_Scope$instance;
|
|
257
|
-
|
|
258
242
|
export interface LockCookie$instance {
|
|
259
243
|
readonly __tsonic_type_System_Threading_LockCookie: never;
|
|
260
244
|
|
|
261
245
|
readonly __tsonic_iface_System_IEquatable_1: never;
|
|
262
246
|
|
|
263
|
-
Equals(obj:
|
|
247
|
+
Equals(obj: JsValue | null): boolean;
|
|
264
248
|
Equals(obj: LockCookie): boolean;
|
|
265
249
|
GetHashCode(): int;
|
|
266
250
|
}
|
|
@@ -362,18 +346,18 @@ export interface AbandonedMutexException$instance extends SystemException, Syste
|
|
|
362
346
|
|
|
363
347
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
364
348
|
|
|
365
|
-
readonly Mutex: Mutex |
|
|
349
|
+
readonly Mutex: Mutex | null;
|
|
366
350
|
readonly MutexIndex: int;
|
|
367
351
|
}
|
|
368
352
|
|
|
369
353
|
|
|
370
354
|
export const AbandonedMutexException: {
|
|
371
355
|
new(): AbandonedMutexException;
|
|
372
|
-
new(message: string): AbandonedMutexException;
|
|
373
|
-
new(message: string, inner: Exception): AbandonedMutexException;
|
|
374
|
-
new(location: int, handle: WaitHandle): AbandonedMutexException;
|
|
375
|
-
new(message: string, location: int, handle: WaitHandle): AbandonedMutexException;
|
|
376
|
-
new(message: string, inner: Exception, location: int, handle: WaitHandle): AbandonedMutexException;
|
|
356
|
+
new(message: string | null): AbandonedMutexException;
|
|
357
|
+
new(message: string | null, inner: Exception | null): AbandonedMutexException;
|
|
358
|
+
new(location: int, handle: WaitHandle | null): AbandonedMutexException;
|
|
359
|
+
new(message: string | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
|
|
360
|
+
new(message: string | null, inner: Exception | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
|
|
377
361
|
};
|
|
378
362
|
|
|
379
363
|
|
|
@@ -395,7 +379,7 @@ export interface AsyncLocal_1$instance<T> {
|
|
|
395
379
|
|
|
396
380
|
export const AsyncLocal_1: {
|
|
397
381
|
new<T>(): AsyncLocal_1<T>;
|
|
398
|
-
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1<T>;
|
|
382
|
+
new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): AsyncLocal_1<T>;
|
|
399
383
|
};
|
|
400
384
|
|
|
401
385
|
|
|
@@ -446,7 +430,7 @@ export interface Barrier$instance {
|
|
|
446
430
|
|
|
447
431
|
export const Barrier: {
|
|
448
432
|
new(participantCount: int): Barrier;
|
|
449
|
-
new(participantCount: int, postPhaseAction: Action_1<Barrier>): Barrier;
|
|
433
|
+
new(participantCount: int, postPhaseAction: Action_1<Barrier> | null): Barrier;
|
|
450
434
|
};
|
|
451
435
|
|
|
452
436
|
|
|
@@ -467,9 +451,9 @@ export interface BarrierPostPhaseException$instance extends Exception, System_Ru
|
|
|
467
451
|
|
|
468
452
|
export const BarrierPostPhaseException: {
|
|
469
453
|
new(): BarrierPostPhaseException;
|
|
470
|
-
new(innerException: Exception): BarrierPostPhaseException;
|
|
471
|
-
new(message: string): BarrierPostPhaseException;
|
|
472
|
-
new(message: string, innerException: Exception): BarrierPostPhaseException;
|
|
454
|
+
new(innerException: Exception | null): BarrierPostPhaseException;
|
|
455
|
+
new(message: string | null): BarrierPostPhaseException;
|
|
456
|
+
new(message: string | null, innerException: Exception | null): BarrierPostPhaseException;
|
|
473
457
|
};
|
|
474
458
|
|
|
475
459
|
|
|
@@ -530,7 +514,7 @@ export interface CompressedStack$instance extends System_Runtime_Serialization_I
|
|
|
530
514
|
export const CompressedStack: {
|
|
531
515
|
Capture(): CompressedStack;
|
|
532
516
|
GetCompressedStack(): CompressedStack;
|
|
533
|
-
Run(compressedStack: CompressedStack, callback: ContextCallback, state:
|
|
517
|
+
Run(compressedStack: CompressedStack, callback: ContextCallback, state: JsValue | null): void;
|
|
534
518
|
};
|
|
535
519
|
|
|
536
520
|
|
|
@@ -593,14 +577,14 @@ export interface EventWaitHandle$instance extends WaitHandle$instance {
|
|
|
593
577
|
|
|
594
578
|
export const EventWaitHandle: {
|
|
595
579
|
new(initialState: boolean, mode: EventResetMode): EventWaitHandle;
|
|
596
|
-
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
597
|
-
new(initialState: boolean, mode: EventResetMode, name: string): EventWaitHandle;
|
|
598
|
-
new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
|
|
599
|
-
new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
|
|
580
|
+
new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
581
|
+
new(initialState: boolean, mode: EventResetMode, name: string | null): EventWaitHandle;
|
|
582
|
+
new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
|
|
583
|
+
new(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean): EventWaitHandle;
|
|
600
584
|
OpenExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
|
|
601
585
|
OpenExisting(name: string): EventWaitHandle;
|
|
602
|
-
TryOpenExisting(name: string, result: EventWaitHandle): boolean;
|
|
603
|
-
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle): boolean;
|
|
586
|
+
TryOpenExisting(name: string, result: EventWaitHandle | null): boolean;
|
|
587
|
+
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle | null): boolean;
|
|
604
588
|
};
|
|
605
589
|
|
|
606
590
|
|
|
@@ -624,11 +608,11 @@ export interface ExecutionContext$instance extends System_Internal.IDisposable$i
|
|
|
624
608
|
|
|
625
609
|
|
|
626
610
|
export const ExecutionContext: {
|
|
627
|
-
Capture(): ExecutionContext |
|
|
611
|
+
Capture(): ExecutionContext | null;
|
|
628
612
|
IsFlowSuppressed(): boolean;
|
|
629
613
|
Restore(executionContext: ExecutionContext): void;
|
|
630
614
|
RestoreFlow(): void;
|
|
631
|
-
Run(executionContext: ExecutionContext, callback: ContextCallback, state:
|
|
615
|
+
Run(executionContext: ExecutionContext, callback: ContextCallback, state: JsValue | null): void;
|
|
632
616
|
SuppressFlow(): AsyncFlowControl;
|
|
633
617
|
};
|
|
634
618
|
|
|
@@ -654,7 +638,7 @@ export interface HostExecutionContext$instance {
|
|
|
654
638
|
|
|
655
639
|
export const HostExecutionContext: {
|
|
656
640
|
new(): HostExecutionContext;
|
|
657
|
-
new(state:
|
|
641
|
+
new(state: JsValue | null): HostExecutionContext;
|
|
658
642
|
};
|
|
659
643
|
|
|
660
644
|
|
|
@@ -668,9 +652,9 @@ export type HostExecutionContext = HostExecutionContext$instance & __HostExecuti
|
|
|
668
652
|
export interface HostExecutionContextManager$instance {
|
|
669
653
|
readonly __tsonic_type_System_Threading_HostExecutionContextManager: never;
|
|
670
654
|
|
|
671
|
-
Capture(): HostExecutionContext |
|
|
672
|
-
Revert(previousState:
|
|
673
|
-
SetHostExecutionContext(hostExecutionContext: HostExecutionContext):
|
|
655
|
+
Capture(): HostExecutionContext | null;
|
|
656
|
+
Revert(previousState: JsValue): void;
|
|
657
|
+
SetHostExecutionContext(hostExecutionContext: HostExecutionContext): JsValue;
|
|
674
658
|
}
|
|
675
659
|
|
|
676
660
|
|
|
@@ -701,6 +685,20 @@ export const Lock: {
|
|
|
701
685
|
|
|
702
686
|
export type Lock = Lock$instance;
|
|
703
687
|
|
|
688
|
+
export interface Lock_Scope$instance {
|
|
689
|
+
readonly __tsonic_type_System_Threading_Lock_Scope: never;
|
|
690
|
+
|
|
691
|
+
Dispose(): void;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
export const Lock_Scope: {
|
|
696
|
+
new(): Lock_Scope;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
export type Lock_Scope = Lock_Scope$instance;
|
|
701
|
+
|
|
704
702
|
export interface LockRecursionException$instance extends Exception, System_Runtime_Serialization_Internal.ISerializable$instance {
|
|
705
703
|
readonly __tsonic_type_System_Threading_LockRecursionException: never;
|
|
706
704
|
|
|
@@ -711,8 +709,8 @@ export interface LockRecursionException$instance extends Exception, System_Runti
|
|
|
711
709
|
|
|
712
710
|
export const LockRecursionException: {
|
|
713
711
|
new(): LockRecursionException;
|
|
714
|
-
new(message: string): LockRecursionException;
|
|
715
|
-
new(message: string, innerException: Exception): LockRecursionException;
|
|
712
|
+
new(message: string | null): LockRecursionException;
|
|
713
|
+
new(message: string | null, innerException: Exception | null): LockRecursionException;
|
|
716
714
|
};
|
|
717
715
|
|
|
718
716
|
|
|
@@ -788,17 +786,17 @@ export interface Mutex$instance extends WaitHandle$instance {
|
|
|
788
786
|
|
|
789
787
|
|
|
790
788
|
export const Mutex: {
|
|
791
|
-
new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
|
|
792
|
-
new(initiallyOwned: boolean, name: string, createdNew: boolean): Mutex;
|
|
793
|
-
new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions): Mutex;
|
|
794
|
-
new(initiallyOwned: boolean, name: string): Mutex;
|
|
795
|
-
new(name: string, options: NamedWaitHandleOptions): Mutex;
|
|
789
|
+
new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
|
|
790
|
+
new(initiallyOwned: boolean, name: string | null, createdNew: boolean): Mutex;
|
|
791
|
+
new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions): Mutex;
|
|
792
|
+
new(initiallyOwned: boolean, name: string | null): Mutex;
|
|
793
|
+
new(name: string | null, options: NamedWaitHandleOptions): Mutex;
|
|
796
794
|
new(initiallyOwned: boolean): Mutex;
|
|
797
795
|
new(): Mutex;
|
|
798
796
|
OpenExisting(name: string, options: NamedWaitHandleOptions): Mutex;
|
|
799
797
|
OpenExisting(name: string): Mutex;
|
|
800
|
-
TryOpenExisting(name: string, result: Mutex): boolean;
|
|
801
|
-
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex): boolean;
|
|
798
|
+
TryOpenExisting(name: string, result: Mutex | null): boolean;
|
|
799
|
+
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex | null): boolean;
|
|
802
800
|
};
|
|
803
801
|
|
|
804
802
|
|
|
@@ -817,17 +815,17 @@ export interface Overlapped$instance {
|
|
|
817
815
|
EventHandleIntPtr: nint;
|
|
818
816
|
OffsetHigh: int;
|
|
819
817
|
OffsetLow: int;
|
|
820
|
-
Pack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
|
|
821
|
-
Pack(iocb: IOCompletionCallback, userData:
|
|
822
|
-
UnsafePack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
|
|
823
|
-
UnsafePack(iocb: IOCompletionCallback, userData:
|
|
818
|
+
Pack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
|
|
819
|
+
Pack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
|
|
820
|
+
UnsafePack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
|
|
821
|
+
UnsafePack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
|
|
824
822
|
}
|
|
825
823
|
|
|
826
824
|
|
|
827
825
|
export const Overlapped: {
|
|
828
826
|
new(): Overlapped;
|
|
829
|
-
new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult): Overlapped;
|
|
830
|
-
new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult): Overlapped;
|
|
827
|
+
new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult | null): Overlapped;
|
|
828
|
+
new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult | null): Overlapped;
|
|
831
829
|
Free(nativeOverlappedPtr: ptr<NativeOverlapped>): void;
|
|
832
830
|
Unpack(nativeOverlappedPtr: ptr<NativeOverlapped>): Overlapped;
|
|
833
831
|
};
|
|
@@ -870,8 +868,8 @@ export interface PreAllocatedOverlapped$instance extends System_Internal.IDispos
|
|
|
870
868
|
|
|
871
869
|
|
|
872
870
|
export const PreAllocatedOverlapped: {
|
|
873
|
-
new(callback: IOCompletionCallback, state:
|
|
874
|
-
UnsafeCreate(callback: IOCompletionCallback, state:
|
|
871
|
+
new(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
|
|
872
|
+
UnsafeCreate(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
|
|
875
873
|
};
|
|
876
874
|
|
|
877
875
|
|
|
@@ -980,14 +978,14 @@ export interface Semaphore$instance extends WaitHandle$instance {
|
|
|
980
978
|
|
|
981
979
|
export const Semaphore: {
|
|
982
980
|
new(initialCount: int, maximumCount: int): Semaphore;
|
|
983
|
-
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions): Semaphore;
|
|
984
|
-
new(initialCount: int, maximumCount: int, name: string): Semaphore;
|
|
985
|
-
new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
|
|
986
|
-
new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
|
|
981
|
+
new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions): Semaphore;
|
|
982
|
+
new(initialCount: int, maximumCount: int, name: string | null): Semaphore;
|
|
983
|
+
new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
|
|
984
|
+
new(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean): Semaphore;
|
|
987
985
|
OpenExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
|
|
988
986
|
OpenExisting(name: string): Semaphore;
|
|
989
|
-
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): boolean;
|
|
990
|
-
TryOpenExisting(name: string, result: Semaphore): boolean;
|
|
987
|
+
TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore | null): boolean;
|
|
988
|
+
TryOpenExisting(name: string, result: Semaphore | null): boolean;
|
|
991
989
|
};
|
|
992
990
|
|
|
993
991
|
|
|
@@ -1008,8 +1006,8 @@ export interface SemaphoreFullException$instance extends SystemException, System
|
|
|
1008
1006
|
|
|
1009
1007
|
export const SemaphoreFullException: {
|
|
1010
1008
|
new(): SemaphoreFullException;
|
|
1011
|
-
new(message: string): SemaphoreFullException;
|
|
1012
|
-
new(message: string, innerException: Exception): SemaphoreFullException;
|
|
1009
|
+
new(message: string | null): SemaphoreFullException;
|
|
1010
|
+
new(message: string | null, innerException: Exception | null): SemaphoreFullException;
|
|
1013
1011
|
};
|
|
1014
1012
|
|
|
1015
1013
|
|
|
@@ -1066,16 +1064,16 @@ export interface SynchronizationContext$instance {
|
|
|
1066
1064
|
IsWaitNotificationRequired(): boolean;
|
|
1067
1065
|
OperationCompleted(): void;
|
|
1068
1066
|
OperationStarted(): void;
|
|
1069
|
-
Post(d: SendOrPostCallback, state:
|
|
1070
|
-
Send(d: SendOrPostCallback, state:
|
|
1067
|
+
Post(d: SendOrPostCallback, state: JsValue | null): void;
|
|
1068
|
+
Send(d: SendOrPostCallback, state: JsValue | null): void;
|
|
1071
1069
|
Wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
|
|
1072
1070
|
}
|
|
1073
1071
|
|
|
1074
1072
|
|
|
1075
1073
|
export const SynchronizationContext: {
|
|
1076
1074
|
new(): SynchronizationContext;
|
|
1077
|
-
readonly Current: SynchronizationContext |
|
|
1078
|
-
SetSynchronizationContext(syncContext: SynchronizationContext): void;
|
|
1075
|
+
readonly Current: SynchronizationContext | null;
|
|
1076
|
+
SetSynchronizationContext(syncContext: SynchronizationContext | null): void;
|
|
1079
1077
|
WaitHelper(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
|
|
1080
1078
|
};
|
|
1081
1079
|
|
|
@@ -1092,8 +1090,8 @@ export interface SynchronizationLockException$instance extends SystemException,
|
|
|
1092
1090
|
|
|
1093
1091
|
export const SynchronizationLockException: {
|
|
1094
1092
|
new(): SynchronizationLockException;
|
|
1095
|
-
new(message: string): SynchronizationLockException;
|
|
1096
|
-
new(message: string, innerException: Exception): SynchronizationLockException;
|
|
1093
|
+
new(message: string | null): SynchronizationLockException;
|
|
1094
|
+
new(message: string | null, innerException: Exception | null): SynchronizationLockException;
|
|
1097
1095
|
};
|
|
1098
1096
|
|
|
1099
1097
|
|
|
@@ -1110,17 +1108,17 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1110
1108
|
ApartmentState: ApartmentState;
|
|
1111
1109
|
CurrentCulture: CultureInfo;
|
|
1112
1110
|
CurrentUICulture: CultureInfo;
|
|
1113
|
-
readonly ExecutionContext: ExecutionContext |
|
|
1111
|
+
readonly ExecutionContext: ExecutionContext | null;
|
|
1114
1112
|
readonly IsAlive: boolean;
|
|
1115
1113
|
IsBackground: boolean;
|
|
1116
1114
|
IsThreadPoolThread: boolean;
|
|
1117
1115
|
readonly ManagedThreadId: int;
|
|
1118
|
-
get Name(): string |
|
|
1119
|
-
set Name(value: string |
|
|
1116
|
+
get Name(): string | null;
|
|
1117
|
+
set Name(value: string | null);
|
|
1120
1118
|
Priority: ThreadPriority;
|
|
1121
1119
|
readonly ThreadState: ThreadState;
|
|
1122
1120
|
Abort(): void;
|
|
1123
|
-
Abort(stateInfo:
|
|
1121
|
+
Abort(stateInfo: JsValue | null): void;
|
|
1124
1122
|
DisableComObjectEagerCleanup(): void;
|
|
1125
1123
|
Finalize(): void;
|
|
1126
1124
|
GetApartmentState(): ApartmentState;
|
|
@@ -1133,11 +1131,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
|
|
|
1133
1131
|
Resume(): void;
|
|
1134
1132
|
SetApartmentState(state: ApartmentState): void;
|
|
1135
1133
|
SetCompressedStack(stack: CompressedStack): void;
|
|
1136
|
-
Start(parameter:
|
|
1134
|
+
Start(parameter: JsValue | null): void;
|
|
1137
1135
|
Start(): void;
|
|
1138
1136
|
Suspend(): void;
|
|
1139
1137
|
TrySetApartmentState(state: ApartmentState): boolean;
|
|
1140
|
-
UnsafeStart(parameter:
|
|
1138
|
+
UnsafeStart(parameter: JsValue | null): void;
|
|
1141
1139
|
UnsafeStart(): void;
|
|
1142
1140
|
}
|
|
1143
1141
|
|
|
@@ -1147,8 +1145,8 @@ export const Thread: {
|
|
|
1147
1145
|
new(start: ThreadStart, maxStackSize: int): Thread;
|
|
1148
1146
|
new(start: ParameterizedThreadStart): Thread;
|
|
1149
1147
|
new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
|
|
1150
|
-
get CurrentPrincipal(): IPrincipal |
|
|
1151
|
-
set CurrentPrincipal(value: IPrincipal |
|
|
1148
|
+
get CurrentPrincipal(): IPrincipal | null;
|
|
1149
|
+
set CurrentPrincipal(value: IPrincipal | null);
|
|
1152
1150
|
readonly CurrentThread: Thread;
|
|
1153
1151
|
AllocateDataSlot(): LocalDataStoreSlot;
|
|
1154
1152
|
AllocateNamedDataSlot(name: string): LocalDataStoreSlot;
|
|
@@ -1158,13 +1156,13 @@ export const Thread: {
|
|
|
1158
1156
|
EndThreadAffinity(): void;
|
|
1159
1157
|
FreeNamedDataSlot(name: string): void;
|
|
1160
1158
|
GetCurrentProcessorId(): int;
|
|
1161
|
-
GetData(slot: LocalDataStoreSlot):
|
|
1159
|
+
GetData(slot: LocalDataStoreSlot): JsValue | null;
|
|
1162
1160
|
GetDomain(): AppDomain;
|
|
1163
1161
|
GetDomainID(): int;
|
|
1164
1162
|
GetNamedDataSlot(name: string): LocalDataStoreSlot;
|
|
1165
1163
|
MemoryBarrier(): void;
|
|
1166
1164
|
ResetAbort(): void;
|
|
1167
|
-
SetData(slot: LocalDataStoreSlot, data:
|
|
1165
|
+
SetData(slot: LocalDataStoreSlot, data: JsValue | null): void;
|
|
1168
1166
|
Sleep(millisecondsTimeout: int): void;
|
|
1169
1167
|
Sleep(timeout: TimeSpan): void;
|
|
1170
1168
|
SpinWait(iterations: int): void;
|
|
@@ -1174,7 +1172,7 @@ export const Thread: {
|
|
|
1174
1172
|
VolatileRead(address: int): int;
|
|
1175
1173
|
VolatileRead(address: long): long;
|
|
1176
1174
|
VolatileRead(address: nint): nint;
|
|
1177
|
-
VolatileRead(address:
|
|
1175
|
+
VolatileRead(address: JsValue | null): JsValue | null;
|
|
1178
1176
|
VolatileRead(address: sbyte): sbyte;
|
|
1179
1177
|
VolatileRead(address: float): float;
|
|
1180
1178
|
VolatileRead(address: ushort): ushort;
|
|
@@ -1187,7 +1185,7 @@ export const Thread: {
|
|
|
1187
1185
|
VolatileWrite(address: int, value: int): void;
|
|
1188
1186
|
VolatileWrite(address: long, value: long): void;
|
|
1189
1187
|
VolatileWrite(address: nint, value: nint): void;
|
|
1190
|
-
VolatileWrite(address:
|
|
1188
|
+
VolatileWrite(address: JsValue | null, value: JsValue | null): void;
|
|
1191
1189
|
VolatileWrite(address: sbyte, value: sbyte): void;
|
|
1192
1190
|
VolatileWrite(address: float, value: float): void;
|
|
1193
1191
|
VolatileWrite(address: ushort, value: ushort): void;
|
|
@@ -1205,7 +1203,7 @@ export interface ThreadAbortException$instance extends SystemException, System_R
|
|
|
1205
1203
|
|
|
1206
1204
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
1207
1205
|
|
|
1208
|
-
readonly ExceptionState:
|
|
1206
|
+
readonly ExceptionState: JsValue | null;
|
|
1209
1207
|
}
|
|
1210
1208
|
|
|
1211
1209
|
|
|
@@ -1244,8 +1242,8 @@ export interface ThreadInterruptedException$instance extends SystemException, Sy
|
|
|
1244
1242
|
|
|
1245
1243
|
export const ThreadInterruptedException: {
|
|
1246
1244
|
new(): ThreadInterruptedException;
|
|
1247
|
-
new(message: string): ThreadInterruptedException;
|
|
1248
|
-
new(message: string, innerException: Exception): ThreadInterruptedException;
|
|
1245
|
+
new(message: string | null): ThreadInterruptedException;
|
|
1246
|
+
new(message: string | null, innerException: Exception | null): ThreadInterruptedException;
|
|
1249
1247
|
};
|
|
1250
1248
|
|
|
1251
1249
|
|
|
@@ -1267,7 +1265,7 @@ export interface ThreadLocal_1$instance<T> {
|
|
|
1267
1265
|
Dispose(): void;
|
|
1268
1266
|
Dispose(disposing: boolean): void;
|
|
1269
1267
|
Finalize(): void;
|
|
1270
|
-
ToString(): string |
|
|
1268
|
+
ToString(): string | null;
|
|
1271
1269
|
}
|
|
1272
1270
|
|
|
1273
1271
|
|
|
@@ -1292,17 +1290,17 @@ export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposa
|
|
|
1292
1290
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
1293
1291
|
|
|
1294
1292
|
readonly Handle: SafeHandle;
|
|
1295
|
-
AllocateNativeOverlapped(callback: IOCompletionCallback, state:
|
|
1293
|
+
AllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
|
|
1296
1294
|
AllocateNativeOverlapped(preAllocated: PreAllocatedOverlapped): ptr<NativeOverlapped>;
|
|
1297
1295
|
Dispose(): void;
|
|
1298
1296
|
FreeNativeOverlapped(overlapped: ptr<NativeOverlapped>): void;
|
|
1299
|
-
UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state:
|
|
1297
|
+
UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
|
|
1300
1298
|
}
|
|
1301
1299
|
|
|
1302
1300
|
|
|
1303
1301
|
export const ThreadPoolBoundHandle: {
|
|
1304
1302
|
BindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
|
|
1305
|
-
GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>):
|
|
1303
|
+
GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): JsValue | null;
|
|
1306
1304
|
};
|
|
1307
1305
|
|
|
1308
1306
|
|
|
@@ -1342,8 +1340,8 @@ export interface ThreadStateException$instance extends SystemException, System_R
|
|
|
1342
1340
|
|
|
1343
1341
|
export const ThreadStateException: {
|
|
1344
1342
|
new(): ThreadStateException;
|
|
1345
|
-
new(message: string): ThreadStateException;
|
|
1346
|
-
new(message: string, innerException: Exception): ThreadStateException;
|
|
1343
|
+
new(message: string | null): ThreadStateException;
|
|
1344
|
+
new(message: string | null, innerException: Exception | null): ThreadStateException;
|
|
1347
1345
|
};
|
|
1348
1346
|
|
|
1349
1347
|
|
|
@@ -1372,10 +1370,10 @@ export interface Timer$instance extends MarshalByRefObject {
|
|
|
1372
1370
|
|
|
1373
1371
|
|
|
1374
1372
|
export const Timer: {
|
|
1375
|
-
new(callback: TimerCallback, state:
|
|
1376
|
-
new(callback: TimerCallback, state:
|
|
1377
|
-
new(callback: TimerCallback, state:
|
|
1378
|
-
new(callback: TimerCallback, state:
|
|
1373
|
+
new(callback: TimerCallback, state: JsValue | null, dueTime: int, period: int): Timer;
|
|
1374
|
+
new(callback: TimerCallback, state: JsValue | null, dueTime: TimeSpan, period: TimeSpan): Timer;
|
|
1375
|
+
new(callback: TimerCallback, state: JsValue | null, dueTime: uint, period: uint): Timer;
|
|
1376
|
+
new(callback: TimerCallback, state: JsValue | null, dueTime: long, period: long): Timer;
|
|
1379
1377
|
new(callback: TimerCallback): Timer;
|
|
1380
1378
|
readonly ActiveCount: long;
|
|
1381
1379
|
};
|
|
@@ -1444,8 +1442,8 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
|
|
|
1444
1442
|
|
|
1445
1443
|
export const WaitHandleCannotBeOpenedException: {
|
|
1446
1444
|
new(): WaitHandleCannotBeOpenedException;
|
|
1447
|
-
new(message: string): WaitHandleCannotBeOpenedException;
|
|
1448
|
-
new(message: string, innerException: Exception): WaitHandleCannotBeOpenedException;
|
|
1445
|
+
new(message: string | null): WaitHandleCannotBeOpenedException;
|
|
1446
|
+
new(message: string | null, innerException: Exception | null): WaitHandleCannotBeOpenedException;
|
|
1449
1447
|
};
|
|
1450
1448
|
|
|
1451
1449
|
|
|
@@ -1457,9 +1455,9 @@ export type WaitHandleCannotBeOpenedException = WaitHandleCannotBeOpenedExceptio
|
|
|
1457
1455
|
|
|
1458
1456
|
|
|
1459
1457
|
export abstract class EventWaitHandleAcl$instance {
|
|
1460
|
-
static Create(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean, eventSecurity: EventWaitHandleSecurity): EventWaitHandle;
|
|
1458
|
+
static Create(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean, eventSecurity: EventWaitHandleSecurity | null): EventWaitHandle;
|
|
1461
1459
|
static OpenExisting(name: string, rights: EventWaitHandleRights): EventWaitHandle;
|
|
1462
|
-
static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle): boolean;
|
|
1460
|
+
static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle | null): boolean;
|
|
1463
1461
|
}
|
|
1464
1462
|
|
|
1465
1463
|
|
|
@@ -1480,7 +1478,7 @@ export abstract class Interlocked$instance {
|
|
|
1480
1478
|
static CompareExchange(location1: int, value: int, comparand: int): int;
|
|
1481
1479
|
static CompareExchange(location1: long, value: long, comparand: long): long;
|
|
1482
1480
|
static CompareExchange(location1: nint, value: nint, comparand: nint): nint;
|
|
1483
|
-
static CompareExchange(location1:
|
|
1481
|
+
static CompareExchange(location1: JsValue | null, value: JsValue | null, comparand: JsValue | null): JsValue | null;
|
|
1484
1482
|
static CompareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
|
|
1485
1483
|
static CompareExchange(location1: float, value: float, comparand: float): float;
|
|
1486
1484
|
static CompareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
|
|
@@ -1498,7 +1496,7 @@ export abstract class Interlocked$instance {
|
|
|
1498
1496
|
static Exchange(location1: int, value: int): int;
|
|
1499
1497
|
static Exchange(location1: long, value: long): long;
|
|
1500
1498
|
static Exchange(location1: nint, value: nint): nint;
|
|
1501
|
-
static Exchange(location1:
|
|
1499
|
+
static Exchange(location1: JsValue | null, value: JsValue | null): JsValue | null;
|
|
1502
1500
|
static Exchange(location1: sbyte, value: sbyte): sbyte;
|
|
1503
1501
|
static Exchange(location1: float, value: float): float;
|
|
1504
1502
|
static Exchange(location1: ushort, value: ushort): ushort;
|
|
@@ -1524,11 +1522,11 @@ export abstract class Interlocked$instance {
|
|
|
1524
1522
|
export type Interlocked = Interlocked$instance;
|
|
1525
1523
|
|
|
1526
1524
|
export abstract class LazyInitializer$instance {
|
|
1527
|
-
static EnsureInitialized<T>(target: T, valueFactory: Func_1<T>): T;
|
|
1528
|
-
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock:
|
|
1529
|
-
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock:
|
|
1530
|
-
static EnsureInitialized<T>(target: T, syncLock:
|
|
1531
|
-
static EnsureInitialized<T>(target: T): T;
|
|
1525
|
+
static EnsureInitialized<T>(target: T | null, valueFactory: Func_1<T>): T;
|
|
1526
|
+
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
|
|
1527
|
+
static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null): T;
|
|
1528
|
+
static EnsureInitialized<T>(target: T | null, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
|
|
1529
|
+
static EnsureInitialized<T>(target: T | null): T;
|
|
1532
1530
|
}
|
|
1533
1531
|
|
|
1534
1532
|
|
|
@@ -1536,41 +1534,41 @@ export type LazyInitializer = LazyInitializer$instance;
|
|
|
1536
1534
|
|
|
1537
1535
|
export abstract class Monitor$instance {
|
|
1538
1536
|
static readonly LockContentionCount: long;
|
|
1539
|
-
static Enter(obj:
|
|
1540
|
-
static Enter(obj:
|
|
1541
|
-
static Exit(obj:
|
|
1542
|
-
static IsEntered(obj:
|
|
1543
|
-
static Pulse(obj:
|
|
1544
|
-
static PulseAll(obj:
|
|
1545
|
-
static TryEnter(obj:
|
|
1546
|
-
static TryEnter(obj:
|
|
1547
|
-
static TryEnter(obj:
|
|
1548
|
-
static TryEnter(obj:
|
|
1549
|
-
static TryEnter(obj:
|
|
1550
|
-
static TryEnter(obj:
|
|
1551
|
-
static Wait(obj:
|
|
1552
|
-
static Wait(obj:
|
|
1553
|
-
static Wait(obj:
|
|
1554
|
-
static Wait(obj:
|
|
1555
|
-
static Wait(obj:
|
|
1537
|
+
static Enter(obj: JsValue, lockTaken: boolean): void;
|
|
1538
|
+
static Enter(obj: JsValue): void;
|
|
1539
|
+
static Exit(obj: JsValue): void;
|
|
1540
|
+
static IsEntered(obj: JsValue): boolean;
|
|
1541
|
+
static Pulse(obj: JsValue): void;
|
|
1542
|
+
static PulseAll(obj: JsValue): void;
|
|
1543
|
+
static TryEnter(obj: JsValue, lockTaken: boolean): void;
|
|
1544
|
+
static TryEnter(obj: JsValue, millisecondsTimeout: int, lockTaken: boolean): void;
|
|
1545
|
+
static TryEnter(obj: JsValue, millisecondsTimeout: int): boolean;
|
|
1546
|
+
static TryEnter(obj: JsValue, timeout: TimeSpan, lockTaken: boolean): void;
|
|
1547
|
+
static TryEnter(obj: JsValue, timeout: TimeSpan): boolean;
|
|
1548
|
+
static TryEnter(obj: JsValue): boolean;
|
|
1549
|
+
static Wait(obj: JsValue, millisecondsTimeout: int, exitContext: boolean): boolean;
|
|
1550
|
+
static Wait(obj: JsValue, millisecondsTimeout: int): boolean;
|
|
1551
|
+
static Wait(obj: JsValue, timeout: TimeSpan, exitContext: boolean): boolean;
|
|
1552
|
+
static Wait(obj: JsValue, timeout: TimeSpan): boolean;
|
|
1553
|
+
static Wait(obj: JsValue): boolean;
|
|
1556
1554
|
}
|
|
1557
1555
|
|
|
1558
1556
|
|
|
1559
1557
|
export type Monitor = Monitor$instance;
|
|
1560
1558
|
|
|
1561
1559
|
export abstract class MutexAcl$instance {
|
|
1562
|
-
static Create(initiallyOwned: boolean, name: string, createdNew: boolean, mutexSecurity: MutexSecurity): Mutex;
|
|
1560
|
+
static Create(initiallyOwned: boolean, name: string | null, createdNew: boolean, mutexSecurity: MutexSecurity | null): Mutex;
|
|
1563
1561
|
static OpenExisting(name: string, rights: MutexRights): Mutex;
|
|
1564
|
-
static TryOpenExisting(name: string, rights: MutexRights, result: Mutex): boolean;
|
|
1562
|
+
static TryOpenExisting(name: string, rights: MutexRights, result: Mutex | null): boolean;
|
|
1565
1563
|
}
|
|
1566
1564
|
|
|
1567
1565
|
|
|
1568
1566
|
export type MutexAcl = MutexAcl$instance;
|
|
1569
1567
|
|
|
1570
1568
|
export abstract class SemaphoreAcl$instance {
|
|
1571
|
-
static Create(initialCount: int, maximumCount: int, name: string, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity): Semaphore;
|
|
1569
|
+
static Create(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity | null): Semaphore;
|
|
1572
1570
|
static OpenExisting(name: string, rights: SemaphoreRights): Semaphore;
|
|
1573
|
-
static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore): boolean;
|
|
1571
|
+
static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore | null): boolean;
|
|
1574
1572
|
}
|
|
1575
1573
|
|
|
1576
1574
|
|
|
@@ -1598,22 +1596,22 @@ export abstract class ThreadPool$instance {
|
|
|
1598
1596
|
static GetMaxThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1599
1597
|
static GetMinThreads(workerThreads: int, completionPortThreads: int): void;
|
|
1600
1598
|
static QueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1601
|
-
static QueueUserWorkItem(callBack: WaitCallback, state:
|
|
1599
|
+
static QueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): boolean;
|
|
1602
1600
|
static QueueUserWorkItem(callBack: WaitCallback): boolean;
|
|
1603
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1604
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1605
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1606
|
-
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1601
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1602
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1603
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1604
|
+
static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1607
1605
|
static SetMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1608
1606
|
static SetMinThreads(workerThreads: int, completionPortThreads: int): boolean;
|
|
1609
1607
|
static UnsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
|
|
1610
1608
|
static UnsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
|
|
1611
1609
|
static UnsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
|
|
1612
|
-
static UnsafeQueueUserWorkItem(callBack: WaitCallback, state:
|
|
1613
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1614
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1615
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1616
|
-
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state:
|
|
1610
|
+
static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): boolean;
|
|
1611
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1612
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1613
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1614
|
+
static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
|
|
1617
1615
|
}
|
|
1618
1616
|
|
|
1619
1617
|
|
|
@@ -1665,7 +1663,7 @@ export type Volatile = Volatile$instance;
|
|
|
1665
1663
|
|
|
1666
1664
|
export abstract class WaitHandleExtensions$instance {
|
|
1667
1665
|
static GetSafeWaitHandle(waitHandle: WaitHandle): SafeWaitHandle;
|
|
1668
|
-
static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle): void;
|
|
1666
|
+
static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle | null): void;
|
|
1669
1667
|
}
|
|
1670
1668
|
|
|
1671
1669
|
|