Function
wrapMap
(self: WrapperOr<A>, f: (value: A) => B)
Source from the content-addressed store, hash-verified
| 1232 | * @since 4.0.0 |
| 1233 | */ |
| 1234 | export const wrapMap = <A extends object, B extends object>(self: WrapperOr<A>, f: (value: A) => B): WrapperOr<B> => { |
| 1235 | if (isWrapper(self)) { |
| 1236 | return wrap(self)(f(self.value)) |
| 1237 | } |
| 1238 | return f(self) |
| 1239 | } |
| 1240 | |
| 1241 | /** |
| 1242 | * Wraps a response Effect or Stream so the RPC server executes it concurrently |
Callers
nothing calls this directly
Tested by
no test coverage detected