ProvableHQ / sdk

A Software Development Kit (SDK) for Zero-Knowledge Transactions
https://provable.tools
GNU General Public License v3.0
584 stars 468 forks source link

Adding in thread_pool::spawn function #881

Closed Pauan closed 4 months ago

Pauan commented 4 months ago

This adds in a thread_pool::spawn function which can be used to run some Rust code on multiple Workers for multithreading.

This is the first step toward implementing #790

iamalwaysuncomfortable commented 4 months ago

This looks good to merge, one thing we will want however is to ensure we're writing some integration tests around spawning functions onto the threadpool.

Pauan commented 4 months ago

Absolutely, that will be in the next PR that actually makes use of the spawning.