Skip to content

Q: Using JS callbacks  #32

@mslijepc

Description

@mslijepc

Hi,
can we use JS callbacks/async calls with Dukglue? Is there some example (I was looking at tests but couldn't fine)

E.g. I would like C/CPP code to call this script (read and write functions are defined)

function f() {
  write(addr, data , function (err) {
    if (!err) {
      read(addr, function (err, data) {
        // do something
      }
    }
  }
}

Thanks

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