It should “just work”.
Check out this post for a way to use C++20 coroutines with Panda3D’s task system: