Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.08 KB

_commands_commandbus_.commandbus.md

File metadata and controls

49 lines (26 loc) · 1.08 KB

@brainhubeu/sqrs"commands/CommandBus"CommandBus

Interface: CommandBus <T>

Interface for command bus that allows dispatching commands to appropriate handlers

interface CommandBus

Type parameters

T

type of result returned after dispatching a command

Hierarchy

  • CommandBus

Implemented by

Index

Methods

Methods

dispatch

dispatch(command: Command): Promise‹T›

Defined in commands/CommandBus.ts:26

Dispatches a command to appropriate command handler

memberof CommandBus

Parameters:

Name Type Description
command Command command to dispatch

Returns: Promise‹T›

result of dispatching