I know this has been asked a million times before and I've read through the search results online an...
f
I know this has been asked a million times before and I've read through the search results online and in this Slack channel but I simply don't understand the most idiomatic way to replace calls like this
Copy code
override fun create(request: InternalCreateUserRequest): Either<IError, User> {
        return Try {
            userDao.createUser(request) //returns User but can throw
        }.toEither { throwable ->
            InternalServerError("Failed to create user", throwable)
        }
    }
Am I supposed to use IO? Either.catch? lots of talk about suspend something something... Don't get it I'm dense and everything I read so far flies way above my head but even I can grok stuff if explained simply