File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 15
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
*/
17
17
18
+ /**
19
+ * A chain holds the state of the sub ratchet, used for sending multiple messages before receiving a reply.
20
+ */
18
21
export default class Chain {
22
+ /**
23
+ *
24
+ * @param {ArrayBuffer } key
25
+ */
19
26
constructor ( key ) {
20
27
this . key = key ;
21
28
this . index = 0 ;
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ var wrap = (fn) => {
21
21
} ;
22
22
} ;
23
23
24
+ /**
25
+ * Wraps an instance of a concrete class converting all methods to return promises.
26
+ * <p>
27
+ * This allows the consumer to deal only with promises.
28
+ */
24
29
export default class PromiseInterfaceDecorator {
25
30
constructor ( impl , methodNames ) {
26
31
methodNames . forEach ( ( methodName ) => {
You can’t perform that action at this time.
0 commit comments