Use this function to create a resource in an async context. This will make sure the resources are cleaned up before returning.
Example:
await using(res = new SomeResource(), async (res) => { res.do_the_thing();}); Copy
await using(res = new SomeResource(), async (res) => { res.do_the_thing();});
Generated using TypeDoc
Use this function to create a resource in an async context. This will make sure the resources are cleaned up before returning.
Example: