From ed4bf42e1d766b096d24a659b43ddc292c83116f Mon Sep 17 00:00:00 2001 From: Ben Baumgold <4933671+baumgold@users.noreply.github.com> Date: Wed, 21 Jun 2023 16:37:44 -0400 Subject: [PATCH] customizable async threshold --- src/TableView.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TableView.jl b/src/TableView.jl index 881dd19..057c0bd 100644 --- a/src/TableView.jl +++ b/src/TableView.jl @@ -74,7 +74,8 @@ function showtable(table; title::String = "", height = :auto, width = "100%", - cell_changed = nothing + cell_changed = nothing, + async_threshold = 10_000, ) rows = Tables.rows(table) it_sz = Base.IteratorSize(rows) @@ -110,7 +111,7 @@ function showtable(table; types = schema.types end - async = tablelength === nothing || tablelength > 10_000 + async = tablelength === nothing || tablelength > async_threshold w = Scope(imports = ag_grid_imports)