Generator Syntax without Adapter

I really like the new generator syntax, but How can I do this without the an adapter?
    const policy = yield* $(
      Effect.fromNullable(config.scripts.get(policyId)),
      Effect.orElseFail(() =>
        mintError("MissingPolicy", `No policy found, policy id: ${policyId}`)
      )
Was this page helpful?