question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update README to document what callback receives

See original GitHub issue

[Edit by @cbetta]

Add documentation on what callback actually is. For most people it’s clear to be a function but even then it would be good to document what to expect exactly.

[Original issue]

Hello there, would it be possible to add the response to all function calls ? Otherwise I am unable to determine if for example an SMS message was sent.

Cheers.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alexschwarz89commented, May 24, 2018

Came here, (as a php developer) didn’t know about (error, response) as a convention, solved my issue, but worth adding it do documentation, even if it’s 2018. 😉

2reactions
radiodariocommented, Apr 12, 2017

It would be nice to see what arguments the callback is being sent, even if it follows the (error, response) convention, just for clarity’s sake

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update Callback - LoanPro API Introduction
To update a callback, you need the ID of a callback you already created. You can find this ID with a GET Callbacks...
Read more >
callback/Readme.md at master - GitHub
API. callback(fn). Call the fn back synchronously if it exists. callback.async(fn[, wait]). Call the fn back asynchronously if it exists.
Read more >
UPDATE: Next Level GitHub Profile README (NEW) - YouTube
Become A VS Code SuperHero Today: https://vsCodeHero.com Since I released my first video on taking your GitHub profile readme to the next ...
Read more >
how to fix this error TypeError [ERR_INVALID_CALLBACK ...
Fs.writeFile() according to the documentation here takes ( file, data[, options]and callback ) params so your code will be like this :
Read more >
Mojo C++ Bindings API
When a Mojom IDL file is processed by the bindings generator, C++ code is ... while clients pass a callback argument to asynchronously...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found