bluemods / Bluecord

Source Code for Bluecord
https://bluesmods.com/bluecord/
MIT License
201 stars 15 forks source link

Remove AsyncTask #1

Open bluemods opened 1 year ago

bluemods commented 1 year ago

AsyncTask has long since been deprecated.

Work should be made to migrate it to my Promise API (not part of this repo yet) or some other solution, so it can be removed.

Mechite commented 1 year ago

Work should be made to migrate it to my Promise API (not part of this repo yet) or some other solution, so it can be removed.

What about using the standard concurrency features? CompletableFutures have been used to achieve "the same" effect as promises (unless you bring other features, such as pooling them or something).

You can also consider ReactiveX for concurrency, since it would allow device support while obviously being lightweight, like coroutines.

EDIT - After just a small amount of familiarizing with how Bluecord is built it is immediately obvious that adding an actual specialised concurrency library is probably not desirable.

This project is very slim and it seems like most things are implemented manually in order to only have what is needed.