mirror of
https://github.com/JonasunderscoreJones/api-worker.git
synced 2025-10-24 10:49:18 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
commit
58a42872a0
1745 changed files with 741893 additions and 0 deletions
17
node_modules/blake3-wasm/dist/base/disposable.d.ts
generated
vendored
Normal file
17
node_modules/blake3-wasm/dist/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