MCPcopy Index your code
hub / github.com/Effect-TS/effect / make

Function make

packages/cluster/src/Entity.ts:390–400  ·  view source on GitHub ↗
(
  /**
   * The entity type name.
   */
  type: Type,
  /**
   * The schema definition for messages that the entity is capable of
   * processing.
   */
  protocol: Rpcs
)

Source from the content-addressed store, hash-verified

388 * @category constructors
389 */
390export const make = <const Type extends string, Rpcs extends ReadonlyArray<Rpc.Any>>(
391 /**
392 * The entity type name.
393 */
394 type: Type,
395 /**
396 * The schema definition for messages that the entity is capable of
397 * processing.
398 */
399 protocol: Rpcs
400): Entity<Type, Rpcs[number]> => fromRpcGroup(type, RpcGroup.make(...protocol))
401
402/**
403 * A Context.Tag to access the current entity address.

Callers 7

EntityResource.tsFile · 0.70
layerWithFunction · 0.70
Runners.tsFile · 0.70
layerWithFunction · 0.70

Calls 2

fromRpcGroupFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected