File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -91,4 +91,15 @@ function setSourceTags(value) {
9191 Glean . Glean . default . setSourceTags ( value ) ;
9292}
9393
94+ /**
95+ * Finishes executing any ongoing tasks and shutsdown Glean.
96+ *
97+ * This will attempt to send pending pings before resolving.
98+ *
99+ * @returns A promise which resolves once shutdown is complete.
100+ */
101+ function shutdown ( ) {
102+ return Glean . shutdown ( ) ;
103+ }
104+
94105const _private = Glean . Glean . default . _private ;
Original file line number Diff line number Diff line change @@ -101,6 +101,17 @@ export default {
101101 Glean . setSourceTags ( value ) ;
102102 } ,
103103
104+ /**
105+ * Finishes executing any ongoing tasks and shutsdown Glean.
106+ *
107+ * This will attempt to send pending pings before resolving.
108+ *
109+ * @returns A promise which resolves once shutdown is complete.
110+ */
111+ shutdown ( ) : Promise < void > {
112+ return Glean . shutdown ( ) ;
113+ } ,
114+
104115 ErrorType,
105116
106117 _private : {
Original file line number Diff line number Diff line change @@ -73,6 +73,17 @@ export default {
7373 Glean . setDebugViewTag ( value ) ;
7474 } ,
7575
76+ /**
77+ * Finishes executing any ongoing tasks and shutsdown Glean.
78+ *
79+ * This will attempt to send pending pings before resolving.
80+ *
81+ * @returns A promise which resolves once shutdown is complete.
82+ */
83+ shutdown ( ) : Promise < void > {
84+ return Glean . shutdown ( ) ;
85+ } ,
86+
7687 /**
7788 * Sets the `sourceTags` debug option.
7889 *
You can’t perform that action at this time.
0 commit comments