Skip to main content

Questions tagged [asynccallback]

A callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time. An asynchronous or deferred callback is invoked after a function returns, or at least on another thread’s stack.

asynccallback
0 votes
0 answers
6 views

How Can I Use Run Manager to Stream Response on RetrievalQA?

I'm working with the langchain library and transformers to build a language model application. I want to integrate a CallbackManagerForLLMRun to stream responses in my RetrievalQA chain. Below is the ...
rahul raj's user avatar
0 votes
1 answer
40 views

callback queue , call stack and registered event like setTimeout

what happens if any event is register (like setTimeout) but it takes more time (assume 5,6 min ), and currently call stack and callback queue is completed all task and it is empty, so the program is ...
Mayank's user avatar
  • 11
0 votes
2 answers
70 views

Where are anonymous callback functions to setTimeout stored?

I have a simple program that looks like this: console.log("Start of the program execution!"); setTimeout(() => { console.log("I ran after a second!"); }, 1000); console....
mukesharyal's user avatar
0 votes
0 answers
19 views

How to transfer large data with IOUserClient AsyncCompletion

I'm trying to make an asynchronous bulk data read using IOUSBHostPipe AsyncIO/CompleteAsyncIO and send the data back to the user-space application using AsyncCompletion. virtual void AsyncCompletion(...
K880's user avatar
  • 1
0 votes
2 answers
63 views

Callback and Microtask Queue of Java Script

p1 = new Promise((res,rej)=>{ console.log("p1 setTimeout"); setTimeout(()=>{ res(17); }, 10000); }); p2 = new Promise((res,rej)=>{ console.log("p2 ...
Saad Ali's user avatar
-1 votes
1 answer
20 views

Why Function pointer is used in Call back function any other usecase?

What is the Use case of Function pointer in Embedded C and why which is used in Call back function? why we can not use normal function call? We can not use normal function call? I could not understand ...
Ramkumar GK's user avatar
0 votes
0 answers
62 views

Why first message in recordList always goes in if block "deliveryReport.Status == PersistenceStatus.NotPersisted"?

I am trying to store batch of messages that failed to publish to kafka in DB and have added a callback deliveryReport for the same. However, when broker is up and running and there is no other issue, ...
Student_begin's user avatar
0 votes
0 answers
74 views

How to store failed messages in batch in kafka?

I am publishing kafka messages in batch using produce method. In case message gets failed to publish, I am storing the entire batch in database table. Currently, the issue I am facing is that eg. if ...
Student_begin's user avatar
2 votes
2 answers
645 views

Usage of Async await with hooks

I have a simple translation function that takes one parameter(string) and return string. It works fine when i use like await translation(key) how ever my need it to use it frequently inside in react ...
Ali Akram's user avatar
  • 5,151
3 votes
1 answer
165 views

Why promise state shows pending, when it has resolved to another promise

Below code snippet I have taken from the famous YDKJS - Async & Performance series, and have made a few changes for the sake of understanding. var p3 = new Promise( function(resolve,reject){ ...
Sadiq's user avatar
  • 838
0 votes
0 answers
49 views

Kafka callback issues with overloaded methods in java

We have two micro-services transfer and approval. The request from transfer will be sent to approval and once approved the funds are transferred. During the submission of approval, there is a Kafka ...
Arun Sudhakaran's user avatar
0 votes
1 answer
165 views

Bot framework continue conversation doesn't work

I'm trying to get a bot to reply to an existing conversation through a separate function. My code looks as follows. class TestClass(): def callback(self, message): async def ...
ML Ops's user avatar
  • 51
0 votes
0 answers
61 views

Is there any way that allow us to achieve asynchronous operation other than callback function?

The main thread tells the system to do something, and registers a callback function handler(). Then the main thread continue to do some other work. When the task is finished, the system will call ...
Ryan's user avatar
  • 113
0 votes
0 answers
65 views

Is there callback received based on periodic subscription or only on change in subscribe() interface in android VHAL?

In Android VHAL, whether the interface subscribe(IVehicleCallback callback, vec options) provides callback to system service only when there is a change or based on subscription frequency if the ...
Nishmitha K's user avatar
0 votes
0 answers
97 views

Google Charts with *ngIf in Angular

I am building an Angular app where I am using google charts. Faced some issue which seems to be related to async My HTML code is: <i class='bx bx-line-chart chart-icon' (click)="changeGraph('...
Saad Ali's user avatar

15 30 50 per page
1
2 3 4 5
31