當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript Signal.disconnectReceiver方法代碼示例

本文整理匯總了TypeScript中@phosphor/signaling.Signal.disconnectReceiver方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Signal.disconnectReceiver方法的具體用法?TypeScript Signal.disconnectReceiver怎麽用?TypeScript Signal.disconnectReceiver使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在@phosphor/signaling.Signal的用法示例。


在下文中一共展示了Signal.disconnectReceiver方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: expect

 session.messageReceived.connect((sender, msg) => {
   expect(sender).to.be(session);
   if (msg.type === 'stdout') {
     Signal.disconnectReceiver(object);
     done();
   }
 }, object);
開發者ID:dalejung,項目名稱:jupyterlab,代碼行數:7,代碼來源:terminal.spec.ts

示例2: catch

 signal.connect((sender: T, args: U) => {
   if (!options.find || options.find(sender, args)) {
     try {
       Signal.disconnectReceiver(object);
       if (options.test) {
         options.test(sender, args);
       }
     } catch (e) {
       done.reject(e);
     }
     done.resolve(options.value || undefined);
   }
 }, object);
開發者ID:afshin,項目名稱:jupyterlab,代碼行數:13,代碼來源:index.ts

示例3: expect

 (s, type) => {
   expect(defaultSession.path).to.equal(newPath);
   expect(type).to.equal('path');
   called = true;
   Signal.disconnectReceiver(object);
 },
開發者ID:willingc,項目名稱:jupyterlab,代碼行數:6,代碼來源:session.spec.ts

示例4:

 (s, args) => {
   called = args;
   Signal.disconnectReceiver(object);
 },
開發者ID:willingc,項目名稱:jupyterlab,代碼行數:4,代碼來源:session.spec.ts

示例5:

 defaultSession.kernelChanged.connect((s, args) => {
   called = args;
   Signal.disconnectReceiver(object);
 }, object);
開發者ID:dalejung,項目名稱:jupyterlab,代碼行數:4,代碼來源:session.spec.ts

示例6: expect

 defaultSession.propertyChanged.connect((s, type) => {
   expect(defaultSession.path).to.be(newPath);
   expect(type).to.be('path');
   called = true;
   Signal.disconnectReceiver(object);
 }, object);
開發者ID:dalejung,項目名稱:jupyterlab,代碼行數:6,代碼來源:session.spec.ts

示例7: expect

 defaultKernel.iopubMessage.connect((k, msg) => {
   expect(msg.header.msg_type).to.be('status');
   Signal.disconnectReceiver(object);
   called = true;
 }, object);
開發者ID:7125messi,項目名稱:jupyterlab,代碼行數:5,代碼來源:ikernel.spec.ts

示例8:

 defaultKernel.statusChanged.connect(() => {
   if (defaultKernel.status === 'busy') {
     Signal.disconnectReceiver(object);
     called = true;
   }
 }, object);
開發者ID:7125messi,項目名稱:jupyterlab,代碼行數:6,代碼來源:ikernel.spec.ts

示例9: expect

 manager.runningChanged.connect((sender, args) => {
   expect(sender).to.be(manager);
   expect(toArray(args).length).to.be.greaterThan(0);
   Signal.disconnectReceiver(object);
   done();
 }, object);
開發者ID:7125messi,項目名稱:jupyterlab,代碼行數:6,代碼來源:manager.spec.ts


注:本文中的@phosphor/signaling.Signal.disconnectReceiver方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。