ocaml-multicore/domainslib

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

hyphenrf opened this issue · 0 comments

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