Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

blockConcurrencyWhile primitive support #45

Closed
gmencz opened this issue Sep 16, 2021 · 5 comments
Closed

blockConcurrencyWhile primitive support #45

gmencz opened this issue Sep 16, 2021 · 5 comments
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API

Comments

@gmencz
Copy link

gmencz commented Sep 16, 2021

A new primitive has very recently been added for Durable Objects which ensures no requests are delivered until initialization completes.

The official docs use this primitive here: https://developers.cloudflare.com/workers/learning/using-durable-objects#in-memory-state-in-a-durable-object

@gmencz gmencz changed the title blockConcurrenyWhile primitive support blockConcurrencyWhile primitive support Sep 16, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Sep 18, 2021

Hey! 👋 This is on my TODO list, should be released in the next major version. 👍

@mrbbot mrbbot added the new api Unsupported new Workers runtime API label Sep 27, 2021
@TheMightyPenguin
Copy link

@mrbbot any updates on this one? 👀

@mrbbot
Copy link
Contributor

mrbbot commented Oct 4, 2021

Yep, it's on its way. 🙂 Hoping to get a v2 beta out soon-ish.

@TheMightyPenguin
Copy link

Nice! @mrbbot this is awesome, I just got started with cloudfare workers last week, and miniflare made a huge difference, really completes the dev experience and makes it amazing. Thank you so much for this!

@mrbbot mrbbot added the fixed-in-next Fixed in next release label Oct 19, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Oct 27, 2021

Hey! 👋 The first pre-release of Miniflare 2 has just been released, including blockConcurrencyWhile and input/output gate support. You can find the full changelog here and install it with npm i miniflare@next -D. Please let me know if you have any other issues, and feel free to ask questions in the #miniflare channel of the Cloudflare Workers Discord server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API
Projects
None yet
Development

No branches or pull requests

3 participants