@@ -71,9 +71,11 @@ class Session private[api](
71
71
*/
72
72
@ throws[IllegalStateException ]
73
73
def run [F , E , R ](
74
- feeds : FeedMap = FeedMap .empty, fetches : F = Seq .empty[Output ],
75
- targets : E = Traversable .empty[Op ], options : Option [RunOptions ] = None )
76
- (implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): R = {
74
+ feeds : FeedMap = FeedMap .empty,
75
+ fetches : F = Seq .empty[Output ],
76
+ targets : E = Traversable .empty[Op ],
77
+ options : Option [RunOptions ] = None
78
+ )(implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): R = {
77
79
runHelper(feeds = feeds, fetches = fetches, targets = targets, options = options)._1
78
80
}
79
81
@@ -106,18 +108,23 @@ class Session private[api](
106
108
*/
107
109
@ throws[IllegalStateException ]
108
110
def runWithMetadata [F , E , R ](
109
- feeds : FeedMap = FeedMap .empty, fetches : F = Seq .empty[Output ], targets : E = Traversable .empty[Op ],
110
- options : Option [RunOptions ] = None )
111
- (implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): (R , Option [RunMetadata ]) = {
111
+ feeds : FeedMap = FeedMap .empty,
112
+ fetches : F = Seq .empty[Output ],
113
+ targets : E = Traversable .empty[Op ],
114
+ options : Option [RunOptions ] = None
115
+ )(implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): (R , Option [RunMetadata ]) = {
112
116
runHelper(feeds = feeds, fetches = fetches, targets = targets, options = options, wantMetadata = true )
113
117
}
114
118
115
119
/** Helper method for [[run ]] and [[runWithMetadata ]]. */
116
120
@ throws[IllegalStateException ]
117
121
private [api] def runHelper [F , E , R ](
118
- feeds : FeedMap = FeedMap .empty, fetches : F = Seq .empty[Output ], targets : E = Traversable .empty[Op ],
119
- options : Option [RunOptions ] = None , wantMetadata : Boolean = false )
120
- (implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): (R , Option [RunMetadata ]) = {
122
+ feeds : FeedMap = FeedMap .empty,
123
+ fetches : F = Seq .empty[Output ],
124
+ targets : E = Traversable .empty[Op ],
125
+ options : Option [RunOptions ] = None ,
126
+ wantMetadata : Boolean = false
127
+ )(implicit executable : Executable [E ], fetchable : Fetchable .Aux [F , R ]): (R , Option [RunMetadata ]) = {
121
128
if (nativeHandle == 0 )
122
129
throw new IllegalStateException (" This session has already been closed." )
123
130
// TODO: !!! [JNI] Add a call to 'extend' once some JNI issues are resolved.
0 commit comments