Call python code asynchronously from c api

Sorry for the noob question, I'm really new to asynchronous programming and python embedding.

I am embedding python in my c ++ application via c api. But then I call something like time.sleep(10)

this freezes my interface (because I am waiting PyEval_EvalCode

)

Is there a fine way to execute some aync code and python fetch result using python streaming?

Sorry for bad english

+3


source to share





All Articles