import { Task } from "https://deno.land/x/eitherway@0.10.0/lib/async/mod.ts";
Use this to create a task from a function which returns a Result<T, E>
or PromiseLike<Result<T, E>
value.
This function should be infallible by contract.
Use Task.fromFallible
if this is not the case.