Instead of creating FlatMap func take a look to Task.Unwrap12Alexander MartinkyanNicolas A PerezFollowSep 3, 2018 · 1 min readUnwrap is flatMap with Identity :)