From aaff0be4380c1e55440ac76bfc78df98debdebd5 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 23:40:32 +0900 Subject: [PATCH] Debug --- .../java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java index 0c78b2e6..82747715 100644 --- a/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java +++ b/data/src/main/java/one/nem/lacerta/data/impl/LacertaLibraryImpl.java @@ -32,6 +32,13 @@ public class LacertaLibraryImpl implements LacertaLibrary { @Override public CompletableFuture> getRecentDocument(int limit) { return CompletableFuture.supplyAsync(() -> { + // 5秒フリーズさせる + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + e.printStackTrace(); + } + List documentEntities = database.documentDao().getRecentDocument(limit); ArrayList listItems = new ArrayList<>();