landelare / ue5coro

A C++20 coroutine plugin offering seamless integration with Unreal Engine 5.
BSD 3-Clause Clear License
617 stars 57 forks source link

Event-driven corotines #10

Closed ameaninglessname closed 1 year ago

ameaninglessname commented 1 year ago

It looks like in current implementation, most of the coroutines are tick based.

I want to use a custom Scheduler to schedule these awaited awaiter objects, would this usage planed to be supported?

If not, I guess i need to extend the awaiter types and related stuff;)

ameaninglessname commented 1 year ago

BTW, you and your repositories are really awesome, and thanks for your blog.

Really appreciated ♥.

landelare commented 1 year ago

Nothing like this is planned. If you want to use your own scheduler, you'll need to implement your own coroutine promise, or at least a custom awaiter directly interacting with UE5Coro::Private. While it's certainly possible, it's not supported. I often make sweeping changes in that namespace.

The engine has an experimental coroutine plugin that you might find useful.

ameaninglessname commented 1 year ago

Thanks!