For further actions, you may consider blocking this person and/or reporting abuse
Read next
Langgraph - Human In the Loop
Jaeyoun Nam -
Step-by-Step Guide to Using React Components as Props Like a Pro
chintanonweb -
Agentic Mesh: Pioneering the Future of Autonomous Agent Ecosystems
VISDOM 04 -
Kohya brought massive improvements to FLUX LoRA (4 GB GPUs) and DreamBooth / Fine-Tuning (6 GB GPUs) training
Furkan Gözükara -
Top comments (4)
Callbacks are friends we send along inside functions to help accomplish additional tasks.
I'm going to send you to the store with money to get groceries. But I need to know how you're doing at the store. So I'm also going to send your friend, and he'll call back home and let me know how things are going. I might even ask him to do other things for me, like drive you home with the groceries.
Sometimes, you need friends to do certain things, like setting a timeout (as exhibited by @nestedsoftware ). That's a 2-person job, someone to set the time and someone to actually do something.
Thank you so much .. !! :)
A callback is a function that you pass in as a variable to another function. A typical example in JavaScript is the
setTimeout
function. If you want something to execute after a delay, you can pass it as a callback tosetTimeout
.setTimeout
will wait 1 second (1000 milliseconds) and then it will actually callsayHello
. The result is that "Hello there!" will get printed to the console after one second.Thanks :)