doc: fix: docstring: use Promise

This commit is contained in:
2024-01-25 17:37:08 +01:00
parent 8eeb9ed4ab
commit c23500e0a0
8 changed files with 42 additions and 19 deletions

View File

@ -19,7 +19,7 @@ class MatchMaking
* @param {CallableFunction} receive_func
* @param {CallableFunction} disconnect_func
* @param {Number} mode The number of players in a game
* @returns {undefined}
* @returns {Promise<?>}
*/
async start(receive_func, disconnect_func, mode)
{
@ -50,6 +50,9 @@ class MatchMaking
this.disconnect_func(event);
}
/**
* @returns {Promise<?>}
*/
async stop()
{
if (this._socket)