Changes between Version 6 and Version 13 of Ticket #3499


Ignore:
Timestamp:
01/13/2016 02:14:51 PM (3 years ago)
Author:
trev
Comment:

Ok, I added Port.emitWithResponse() to the description, returning a promise.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3499

    • Property Cc sergz added
  • Ticket #3499 – Description

    v6 v13  
    1010* `Port.on()` adds a handler for a particular message (message names are specific to Adblock Plus and won't conflict with other extensions). 
    1111* `Port.off()` removes a handler. 
    12 * `Port.emit()` sends/broadcasts an asynchronous message, if provided the response callback will be triggered with the response. 
     12* `Port.emit()` sends/broadcasts an asynchronous message. 
     13* `Port.emitWithResponse()` sends/broadcasts an asynchronous message. It returns a promise that will be resolved when the response is received. 
    1314* `Port.emitSync()` sends a synchronous message, response is returned from the function. 
    1415