1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-27 22:28:29 +02:00

fix: add multi provider

Signed-off-by: Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Carsten Leue
2023-11-09 21:53:55 +01:00
parent 16f708d69f
commit cc2f8e54e5
9 changed files with 222 additions and 44 deletions

View File

@@ -28,6 +28,6 @@ import (
func Resolve[T any](token InjectionToken[T]) RIOE.ReaderIOEither[DIE.InjectableFactory, error, T] {
return F.Flow2(
IG.Ap[DIE.InjectableFactory](DIE.AsDependency(token)),
IOE.ChainEitherK(toType[T]()),
IOE.ChainEitherK(token.Unerase),
)
}