btford / react-palm

Work in progress, docs forthcoming i promise
MIT License
60 stars 7 forks source link

Feat/Doc: Cancelling tasks, subscriptions #23

Open btford opened 6 years ago

btford commented 6 years ago

I gotta think about this a bit.

task = xhr "google.com"
execution <- do task

// one of:
status <- cancel execution
result <- execution

but also:

task = xhr "google.com"
result <- do task

Prefer an API that's monomorphic– we don't actually want to overload do task.