Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import {run, Rx} from '@cycle/core';
  2.  
  3. function makeCustomDriver () {
  4. return (requestProxy, name) => {
  5. console.log('makeCustomDriver', requestProxy, name);
  6. const responses = {};
  7. return responses;
  8. }
  9. }
  10.  
  11. let drivers = {
  12. CustomDriver: makeCustomDriver(),
  13. }
  14.  
  15. run(function (responses) {
  16. console.log(responses);
  17.  
  18. const requests = {
  19. CustomDriver: makeCustomDriver(),
  20. };
  21.  
  22. return requests;
  23. }, drivers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement