[PR #479] [MERGED] Add a resolver example using multithreaded tokio. #1466

Closed
opened 2026-03-16 02:08:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/479
Author: @justinlatimer
Created: 5/20/2018
Status: Merged
Merged: 5/21/2018
Merged by: @bluejekyll

Base: masterHead: multithreaded


📝 Commits (1)

  • 0ab4aa4 Add a resolver example using multithreaded tokio.

📊 Changes

3 files changed (+73 additions, -1 deletions)

View changed files

resolver/examples/multithreaded_runtime.rs (+70 -0)
📝 scripts/test_default_features.sh (+1 -0)
📝 scripts/test_windows.bat (+2 -1)

📄 Description

This is an example how to use the resolver in the standard tokio::Runtime (i.e. without using the single threaded tokio::runtime::current_thread::Runtime).

This allows the resolver to use the same runtime and reactor as other futures you might be running.

Thanks!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/479 **Author:** [@justinlatimer](https://github.com/justinlatimer) **Created:** 5/20/2018 **Status:** ✅ Merged **Merged:** 5/21/2018 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `master` ← **Head:** `multithreaded` --- ### 📝 Commits (1) - [`0ab4aa4`](https://github.com/hickory-dns/hickory-dns/commit/0ab4aa4199f9f481a21ea3d21c706734cf2e2708) Add a resolver example using multithreaded tokio. ### 📊 Changes **3 files changed** (+73 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `resolver/examples/multithreaded_runtime.rs` (+70 -0) 📝 `scripts/test_default_features.sh` (+1 -0) 📝 `scripts/test_windows.bat` (+2 -1) </details> ### 📄 Description This is an example how to use the resolver in the standard `tokio::Runtime` (i.e. without using the single threaded `tokio::runtime::current_thread::Runtime`). This allows the resolver to use the same runtime and reactor as other futures you might be running. Thanks! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 02:08:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1466
No description provided.