-
Notifications
You must be signed in to change notification settings - Fork 0
FunctionData.then()
paige edited this page Nov 17, 2023
·
1 revision
adds a new listener for when the data finishes pending
type: Function
arguments:
- callback
Function
callback for the listener
fired off when the data finishes pending
| JS |
const fndt = require('fndt');
function test(a, b="placeholder") {
console.log(a, b);
}
let fd = fndt.fetch(test);
fd.then((data) => {
console.log(data);
}); |