You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Clean up documentation of Whenable
This commit is contained in:
@@ -41,7 +41,7 @@ export abstract class Whenable<T> implements IDestroyable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up a fall to `fn` *when* any of the `conditions` are met.
|
* Sets up a call to `fn` *when* any of the `conditions` are met.
|
||||||
* @param conditions The conditions to match.
|
* @param conditions The conditions to match.
|
||||||
* @param fn The function to call.
|
* @param fn The function to call.
|
||||||
* @returns This.
|
* @returns This.
|
||||||
@@ -64,7 +64,7 @@ export abstract class Whenable<T> implements IDestroyable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifies all the whenables of a given condition.
|
* Notifies all the listeners of a given condition.
|
||||||
* @param condition The new condition that has been met.
|
* @param condition The new condition that has been met.
|
||||||
*/
|
*/
|
||||||
protected notifyCondition(condition: T) {
|
protected notifyCondition(condition: T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user