Skip to content

Commit

Permalink
docs: improve start() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxuum committed Jul 30, 2024
1 parent ccef92f commit 1fe6b4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/client/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export class CenturionClient {
}

/**
* Starts {@link CenturionClient}.
* Starts {@link CenturionServer}.
*
* @param callback The run callback.
* @param callback A callback that is called after the registry has been initialized.
*/
async start(callback?: (registry: ClientRegistry) => void) {
this.logger.assert(!this.started, "Centurion has already been started");
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/server/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export class CenturionServer {

/**
* Starts {@link CenturionServer}.
*
* @param callback A callback that is called after the registry has been initialized.
*/
async start(callback?: (registry: ServerRegistry) => void) {
this.logger.assert(!this.started, "Centurion has already been started");
Expand Down

0 comments on commit 1fe6b4f

Please sign in to comment.