Skip to content

Commit 8265576

Browse files
committed
0.0.26 (with removal of unused references)
1 parent f78763d commit 8265576

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudflare/containers",
3-
"version": "0.0.25",
3+
"version": "0.0.26",
44
"description": "Helper class for container-enabled Durable Objects",
55
"repository": {
66
"type": "git",

src/lib/container.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -786,21 +786,6 @@ export class Container<Env = unknown> extends DurableObject<Env> {
786786
// GENERAL HELPERS
787787
// ==========================
788788

789-
// This wraps blockConcurrencyWhile so you can throw in it,
790-
// then check for a string return value that you can throw from the parent
791-
// Note that the DO will continue to run, unlike normal errors in blockConcurrencyWhile
792-
private async blockConcurrencyThrowable(
793-
blockingFunction: () => Promise<any>
794-
): Promise<string | undefined> {
795-
return this.ctx.blockConcurrencyWhile(async () => {
796-
try {
797-
return await blockingFunction();
798-
} catch (e) {
799-
return `${e instanceof Error ? e.message : String(e)}`;
800-
}
801-
});
802-
}
803-
804789
/**
805790
* Execute SQL queries against the Container's database
806791
*/

0 commit comments

Comments
 (0)