Restrict example threads via concurrent-ruby
Restrict example threads via concurrent-ruby

Use the promises asynchronous task inside of concurrent ruby:

https://github.com/ruby-concurrency/concurrent-ruby/blob/master/docs-source/promises.in.md#asynchronous-task

The promises use an internal thread pool to limit executions.

Shopify/graphql-batch,Shopify/graphql-batch