my tests
ping-pong-duplex-check - tests (depend on me)
#API
- crossDuplexes(duplex1, duplex2)
maybe it should not be here
- makeDestStream(sendFunction: fn(?))
based on some callback we get stream - that will invoke that func on every stream value
- makeDuplexStream(sourceFct, destFct)
- makeSourceStreamByInjectingCallingFunction(object, funcName)
object will call object[funcName] during its life cycle to pass values, we create source stream that have this values
- makeSourceStreamFromEventListener(objectToListen, event)
object will dispatch event during its life cycle to pass values, we create source stream that have this values
- makeSourceStreamFromEventSpawningObject(objectToListen)
object is a mechanish to pass some values and can be listened (chrome.runtime.onConnect), we create source stream that have this values