Skip to content

Commit c768b10

Browse files
authored
Add priority to futures example (#214)
1 parent fd9db9a commit c768b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: futures.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@
321321
"while seq.count() > 1: # at least two futures left\n",
322322
" a = next(seq)\n",
323323
" b = next(seq)\n",
324-
" new = client.submit(add, a, b) # add them together\n",
325-
" seq.add(new) # add new future back into loop"
324+
" new = client.submit(add, a, b, priority=1) # add them together\n",
325+
" seq.add(new) # add new future back into loop"
326326
]
327327
}
328328
],

0 commit comments

Comments
 (0)