Skip to content

Commit

Permalink
[viewtsv] async -> asyncthread for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Jul 6, 2018
1 parent 95f2d94 commit 87e6062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/viewtsv
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TsvSheet(vdtui.Sheet):
rowtype = 'rows'
columns = [vdtui.ColumnItem('tsv', 0)]

@vdtui.async
@vdtui.asyncthread
def reload(self):
self.rows = []

Expand Down
4 changes: 2 additions & 2 deletions www/docs/viewtsv.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ An initial column. Generally the class-level `columns` is set to the actual col
(See the `reload()` function below where they are set from the contents of the first row.) This line is not strictly necessary but makes loading feel a bit more responsive.


@vdtui.async
@vdtui.asyncthread

@[async](/docs/async) marks the function to spawn a new thread whenever it is called.
@[asyncthread](/docs/async) marks the function to spawn a new thread whenever it is called.

def reload(self):

Expand Down

0 comments on commit 87e6062

Please sign in to comment.