class is for mutable state. Async func can’t be in class (the vars will be corrupt if the func is called twice).
Change class to struct. Change async func to return a result.
class is for mutable state. Async func can’t be in class (the vars will be corrupt if the func is called twice).
Change class to struct. Change async func to return a result.