nbren12 / dask.targeted

Enabling on-disk and other persistence mechanisms in dask
2 stars 1 forks source link

Need simple API for multiple outputs #2

Open nbren12 opened 6 years ago

nbren12 commented 6 years ago

This package currently only supports functions with single outputs. Of course, it can handle multiple outputs using a syntax like

b = delayed(get)(a, 1)
targeted(tgt, b)

It might be easier if targeted could be modified to accept a list of targets so that

b1, b2, b3 = targeted([Target(1), Target(2), Target(3)], a)

and b1, b2, b3 are all delayed objects.