You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: daimio/pflavs/internal.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,19 @@ D.import_port_flavour('up', {
20
20
21
21
D.import_port_flavour('down',{
22
22
dir: 'down',
23
-
exit: function(ship,process,callback){
23
+
exit: function(ship,process){
24
24
// go down, then return back up...
25
25
// THINK: is the callback param the right way to do this?? it's definitely going to complicate things...
26
26
27
27
varself=this
28
28
D.setImmediate(function(){
29
-
// THINK: ideally there's only ONE route from a downport. can we formalize that?
30
29
// self.outs.forEach(function(port) {
31
30
// port.enter(ship)
32
31
// })
32
+
33
+
// THINK: whether we can pass multiple ships or have to queue them depends on our routes: if they're all bidirectional we can chain the callbacks, otherwise we have to send them one at a time.
34
+
35
+
// THINK: ideally there's only ONE route from a downport. can we formalize that?
0 commit comments