Skip to content

Commit 06a80af

Browse files
author
Ben Baumgold
committed
#62 reduce unnecessary async usage
1 parent df60df6 commit 06a80af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/TableView.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ function showtable(table, options::Dict{Symbol, Any} = Dict{Symbol, Any}();
6868
cell_changed = nothing
6969
)
7070
rows = Tables.rows(table)
71-
tablelength = Base.IteratorSize(rows) == Base.HasLength() ? length(rows) : nothing
71+
it_sz = Base.IteratorSize(rows)
72+
has_len = it_sz == Base.HasLength() || it_sz == Base.HasShape{1}()
73+
tablelength = has_len ? length(rows) : nothing
7274

7375
if height === :auto
7476
height = 500

0 commit comments

Comments
 (0)