ocaml-multicore / domainslib

Parallel Programming over Domains
ISC License
172 stars 30 forks source link

Why is `Task.async`'s callback a thunk only? #94

Open hyphenrf opened 1 year ago

hyphenrf commented 1 year ago

i.e. why is its type not in the form of: pool -> ('a -> 'b) ->/* 'a -> 'b promise? Similar in spirit to Thread.create