File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments