Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

onStart / onProgress only good for Debug.log ? #39

Closed
tko opened this issue Jun 9, 2016 · 2 comments
Closed

onStart / onProgress only good for Debug.log ? #39

tko opened this issue Jun 9, 2016 · 2 comments

Comments

@tko
Copy link

tko commented Jun 9, 2016

  • onStart and onProgress allow you to monitor progress. This is useful if you want to show a progress bar when uploading a large amount of data.

    , onStart : Maybe (Task () ())
    , onProgress : Maybe (Maybe { loaded : Int, total : Int } -> Task () ())

How can one update the model with the 'loaded' and 'total' values here? I don't see how the callbacks could be used for anything other than Debug.log and succeed () and can't find any examples to the contrary. Shouldn't the signature be Task () (Cmd msg) or am I just not understanding how to trigger an update from these callbacks?

@rtfeldman
Copy link
Contributor

As far as I can make out, think this API made sense in 0.16, but is no longer useful in 0.17.

@evancz
Copy link
Owner

evancz commented Jun 26, 2016

It should become useful again once processes can communicate, as described here.

@evancz evancz closed this as completed Jun 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants