Readable and callback | developer.brewmp.com Readable and callback | developer.brewmp.com

Developer

Readable and callback

Forums:

as far as i know,you call a readable fun like ISourcs_readable,it will trigger two funs,first is the callback you register,then is corresponding read,now my question is:does readable fun only do this two job? thank u

Only one function will be called, the callback you passed to Readable(). When that function is called, your code can then call Read().
-Erik

Only one function will be called, the callback you passed to Readable(). When that function is called, your code can then call Read().
-Erik

thank u, but does this mean if I want to write a readable fun, all I i need to do is registering a callback which perhaps is a fun contain above two funs

thank u, but does this mean if I want to write a readable fun, all I i need to do is registering a callback which perhaps is a fun contain above two funs