Skip to content

Guidance for returning result from read #106

@Toshiba01

Description

@Toshiba01

Hi,

I need a little bit of guidance:

wire.read(length, function(err, res) { // result contains a buffer of bytes });

taking in consideration this function, how can I return result value to be used in the code outside of this function?

something like: var returnedValue = wire.read(length, function(err, res){ return res})

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions