Exploring Request Cancelling with Effect in Typescript

I'd love to add request cancelling to our system, if a user updates a newer long running task, we could cancel any previously submitted ones. We have multiple instances running in fargate

Generally I'd go for redlock and polling the lock and build on that, but I just wondered if there's a more idiomatic effect solution?
Was this page helpful?