Skip to content

Commit 20d6e76

Browse files
committed
add:添加 Future 与 CompletableFuture 的使用方法与示例
1 parent 5c1a18b commit 20d6e76

File tree

29 files changed

+6883
-333
lines changed

29 files changed

+6883
-333
lines changed

categories/collections/index.xml

Lines changed: 33 additions & 33 deletions
Large diffs are not rendered by default.

categories/concurrency/index.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565

6666
<meta itemprop="name" content="Concurrency">
6767
<meta itemprop="description" content="TeXify3 - A LaTeX-style hugo theme with the gruvbox color scheme for personal blogging">
68-
<meta itemprop="datePublished" content="2025-10-12T00:00:00+00:00">
69-
<meta itemprop="dateModified" content="2025-10-12T00:00:00+00:00">
68+
<meta itemprop="datePublished" content="2025-12-29T15:37:35+08:00">
69+
<meta itemprop="dateModified" content="2025-12-29T15:37:35+08:00">
7070

7171

7272

@@ -167,6 +167,18 @@ <h1>
167167

168168

169169

170+
<div class="post-group">
171+
<h3>December 2025</h3>
172+
<ul>
173+
174+
<li>
175+
<a class="link" href="/posts/java/concurrency/%E4%BB%8E-future-%E5%88%B0-completablefuture/">从 Future 到 CompletableFuture</a>
176+
<time>29 December 2025</time>
177+
</li>
178+
179+
</ul>
180+
</div>
181+
170182
<div class="post-group">
171183
<h3>October 2025</h3>
172184
<ul>

categories/concurrency/index.xml

Lines changed: 612 additions & 1 deletion
Large diffs are not rendered by default.

categories/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565

6666
<meta itemprop="name" content="Categories">
6767
<meta itemprop="description" content="TeXify3 - A LaTeX-style hugo theme with the gruvbox color scheme for personal blogging">
68-
<meta itemprop="datePublished" content="2025-12-27T21:47:35+08:00">
69-
<meta itemprop="dateModified" content="2025-12-27T21:47:35+08:00">
68+
<meta itemprop="datePublished" content="2025-12-29T15:37:35+08:00">
69+
<meta itemprop="dateModified" content="2025-12-29T15:37:35+08:00">
7070

7171

7272

@@ -203,21 +203,21 @@ <h2>
203203
</ul>
204204

205205
<ul>
206-
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/api%E8%AE%BE%E8%AE%A1/">API设计</a>
206+
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/concurrency/">Concurrency</a>
207207

208-
1 post
208+
2 posts
209209
</li>
210210
</ul>
211211

212212
<ul>
213-
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/collections/">Collections</a>
213+
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/api%E8%AE%BE%E8%AE%A1/">API设计</a>
214214

215215
1 post
216216
</li>
217217
</ul>
218218

219219
<ul>
220-
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/concurrency/">Concurrency</a>
220+
<li><a class="title is-5 is-size-6-mobile" href="https://asgpipo.github.io/categories/collections/">Collections</a>
221221

222222
1 post
223223
</li>

categories/index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<description>Recent content in Categories on pipo&#39;s site</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en</language>
9-
<lastBuildDate>Sat, 27 Dec 2025 21:47:35 +0800</lastBuildDate><atom:link href="https://asgpipo.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
9+
<lastBuildDate>Mon, 29 Dec 2025 15:37:35 +0800</lastBuildDate><atom:link href="https://asgpipo.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
1010
</channel>
1111
</rss>

index.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<meta property="og:site_name" content="pipo&#39;s site">
5353
<meta property="og:title" content="pipo&#39;s site">
5454
<meta property="og:description" content="存档可能会做的一些学习笔记或者其他东西
55-
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 W-TinyLFU — 2025-12-10 Acknowledgement This is a fork of the TeXify2 theme.">
55+
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes 从 Future 到 CompletableFuture — 2025-12-29 Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 Acknowledgement This is a fork of the TeXify2 theme.">
5656
<meta property="og:locale" content="en">
5757
<meta property="og:type" content="website">
5858

@@ -67,9 +67,9 @@
6767

6868
<meta itemprop="name" content="pipo&#39;s site">
6969
<meta itemprop="description" content="存档可能会做的一些学习笔记或者其他东西
70-
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 W-TinyLFU — 2025-12-10 Acknowledgement This is a fork of the TeXify2 theme.">
70+
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes 从 Future 到 CompletableFuture — 2025-12-29 Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 Acknowledgement This is a fork of the TeXify2 theme.">
7171
<meta itemprop="dateModified" content="2025-08-16T14:06:43+08:00">
72-
<meta itemprop="wordCount" content="88">
72+
<meta itemprop="wordCount" content="91">
7373

7474

7575

@@ -92,7 +92,7 @@
9292
<meta name="twitter:card" content="summary">
9393
<meta name="twitter:title" content="pipo&#39;s site">
9494
<meta name="twitter:description" content="存档可能会做的一些学习笔记或者其他东西
95-
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 W-TinyLFU — 2025-12-10 Acknowledgement This is a fork of the TeXify2 theme.">
95+
Introduce Just For Fun CS 本科在读 随缘写 我的运动记录 Recent Notes 从 Future 到 CompletableFuture — 2025-12-29 Java基础IO — 2025-12-27 跨域 — 2025-12-16 Location匹配 — 2025-12-15 Nginx快速入门 — 2025-12-14 Acknowledgement This is a fork of the TeXify2 theme.">
9696

9797

9898

@@ -169,6 +169,11 @@ <h2 id="recent-notes">Recent Notes</h2>
169169

170170

171171

172+
<li>
173+
<a href="/posts/java/concurrency/%E4%BB%8E-future-%E5%88%B0-completablefuture/">从 Future 到 CompletableFuture</a>
174+
<span style="color:#888;">— 2025-12-29</span>
175+
</li>
176+
172177
<li>
173178
<a href="/posts/java/java_base/io/java-%E5%9F%BA%E7%A1%80-io/">Java基础IO</a>
174179
<span style="color:#888;">— 2025-12-27</span>
@@ -189,11 +194,6 @@ <h2 id="recent-notes">Recent Notes</h2>
189194
<span style="color:#888;">— 2025-12-14</span>
190195
</li>
191196

192-
<li>
193-
<a href="/posts/caffeine/">W-TinyLFU</a>
194-
<span style="color:#888;">— 2025-12-10</span>
195-
</li>
196-
197197
</ul>
198198

199199

@@ -215,6 +215,10 @@ <h3 class="taxonomy">
215215
</h3>
216216
<ul class="nav-list sidenav">
217217

218+
<li>
219+
<a href="https://asgpipo.github.io/categories/concurrency/">Concurrency</a>
220+
</li>
221+
218222
<li>
219223
<a href="https://asgpipo.github.io/categories/io/">IO</a>
220224
</li>
@@ -251,10 +255,6 @@ <h3 class="taxonomy">
251255
<a href="https://asgpipo.github.io/categories/jvm/">JVM</a>
252256
</li>
253257

254-
<li>
255-
<a href="https://asgpipo.github.io/categories/concurrency/">Concurrency</a>
256-
</li>
257-
258258
</ul>
259259

260260

@@ -269,43 +269,43 @@ <h3 class="taxonomy">
269269
<ul class="nav-list sidenav">
270270

271271
<li>
272-
<a href="https://asgpipo.github.io/tags/%E5%AD%97%E7%AC%A6%E6%B5%81/">字符流</a>
272+
<a href="https://asgpipo.github.io/tags/completablefuture/">CompletableFuture</a>
273273
</li>
274274

275275
<li>
276-
<a href="https://asgpipo.github.io/tags/%E5%AD%97%E8%8A%82%E6%B5%81/">字节流</a>
276+
<a href="https://asgpipo.github.io/tags/concurrency/">Concurrency</a>
277277
</li>
278278

279279
<li>
280-
<a href="https://asgpipo.github.io/tags/cors/">CORS</a>
280+
<a href="https://asgpipo.github.io/tags/future/">Future</a>
281281
</li>
282282

283283
<li>
284-
<a href="https://asgpipo.github.io/tags/http/">HTTP</a>
284+
<a href="https://asgpipo.github.io/tags/java/">JAVA</a>
285285
</li>
286286

287287
<li>
288-
<a href="https://asgpipo.github.io/tags/%E8%AF%B7%E6%B1%82%E5%A4%B4/">请求头</a>
288+
<a href="https://asgpipo.github.io/tags/threadpool/">ThreadPool</a>
289289
</li>
290290

291291
<li>
292-
<a href="https://asgpipo.github.io/tags/host/">Host</a>
292+
<a href="https://asgpipo.github.io/tags/%E5%AD%97%E7%AC%A6%E6%B5%81/">字符流</a>
293293
</li>
294294

295295
<li>
296-
<a href="https://asgpipo.github.io/tags/linux/">Linux</a>
296+
<a href="https://asgpipo.github.io/tags/%E5%AD%97%E8%8A%82%E6%B5%81/">字节流</a>
297297
</li>
298298

299299
<li>
300-
<a href="https://asgpipo.github.io/tags/location/">Location</a>
300+
<a href="https://asgpipo.github.io/tags/cors/">CORS</a>
301301
</li>
302302

303303
<li>
304-
<a href="https://asgpipo.github.io/tags/%E5%90%8E%E7%AB%AF%E5%BC%80%E5%8F%91/">后端开发</a>
304+
<a href="https://asgpipo.github.io/tags/http/">HTTP</a>
305305
</li>
306306

307307
<li>
308-
<a href="https://asgpipo.github.io/tags/%E7%AE%97%E6%B3%95/">算法</a>
308+
<a href="https://asgpipo.github.io/tags/%E8%AF%B7%E6%B1%82%E5%A4%B4/">请求头</a>
309309
</li>
310310

311311
</ul>

0 commit comments

Comments
 (0)