JCOBridge |
The JCOBridgeDisposeAsyncScope type exposes the following members.
| Name | Description | |
|---|---|---|
| JCOBridgeDisposeAsyncScope | Initializes a new batch dispose scope for async contexts. Disposal of JVM objects within this scope is batched and flushed in a single native call when the scope exits. The scope state flows automatically across await continuations. |
| Name | Description | |
|---|---|---|
| Dispose | Releases the batch scope, flushing any queued JVM global reference releases in a single native call. Suppresses finalization after disposal. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Finalizer
(Overrides ObjectFinalize) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions) | |
| ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions) |
await using var scope = new JCOBridgeDisposeAsyncScope(); await foreach (var item in asyncCollection) { using (item) { /* item disposal is batched */ } }