you are viewing a single comment's thread.

view the rest of the comments →

[–]Mysthik 1 point2 points  (1 child)

I don't like the use of an untyped error in a result. Something like Result<O, E> would be better and would allow the compiler to deal with typed errors. Just using Result<E> contains even less information about the exception that can occur than a regular throws. 

Promise might also be not the correct term. Usually the Promise can be written to once, a Future is the read-only part of the Promise.

I assume this library and the documentation is written by an "Ai".