Instead of creating FlatMap func take a look to Task.Unwrap12Alexander MartinkyanNicolas A PerezFollowSep 3, 2018 · 1 min readUnwrap doesn’t compose since we cannot pass a function to it. Unwrap is like the flatten i showed.