mirror of
https://github.com/JonasunderscoreJones/aka-worker.git
synced 2025-10-24 02:19:17 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
parent
8cb86120f1
commit
fff961078a
1777 changed files with 1011798 additions and 0 deletions
17
cool-dawn-3d3b/node_modules/blake3-wasm/esm/base/disposable.d.ts
generated
vendored
Normal file
17
cool-dawn-3d3b/node_modules/blake3-wasm/esm/base/disposable.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* A type which requires manual disposal to free unmanaged resources. In the
|
||||
* context of this library, this usually means freeing memory from WebAssembly
|
||||
* code.
|
||||
*/
|
||||
export interface IDisposable {
|
||||
/**
|
||||
* Frees unmanaged resources of the object. This method is idempotent;
|
||||
* calling it multiple times will have no ill effects.
|
||||
*/
|
||||
dispose(): void;
|
||||
}
|
||||
/**
|
||||
* A helper function that calls `.dispose()` on the {@link IDisposable} when
|
||||
* the given function (or promise returned by the function) returns.
|
||||
*/
|
||||
export declare const using: <T, D extends IDisposable>(disposable: D, fn: (d: D) => T) => T;
|
||||
Loading…
Add table
Add a link
Reference in a new issue