flatmax / gtkiostream

Trivialised Threading, GTK GUIs, Signal Processing, Neural Networks, Audio Processing, Octave interfacing ... and more !
13 stars 7 forks source link

sox-audio: Add new flow process once decodeURL() finish #3

Closed mahdiridho closed 5 years ago

mahdiridho commented 5 years ago

What do you think with this approach? Seems, simpler then return promise?

on the client, I just run this :

  /** Overload method to execute the next process
  */
  decodeSuccess(){
    this.plot();
  }

  /** Overload method when getting error
  */
  decodeError(e){
    alert(e)
  }
flatmax commented 5 years ago

Yes, it is a good idea to provide overloadable decode success/error methods.