mercredi 26 août 2020

Should I Put Code Block That Contains IO/Network Operations in Thread in my lib(jar)?

I have a library which consists background operations such as file IO, network, db query etc.

  • Should i put background operations inside thread block?

    OR

  • it is implementation details so A method which implements the operations acts this task.

As a developer I wonder that which one is correct way?

Aucun commentaire:

Enregistrer un commentaire