Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/vibe/core/internal/threadlocalwaiter.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module vibe.core.internal.threadlocalwaiter;

import vibe.container.internal.utilallocator : Mallocator, disposeGCSafe, makeGCSafe;
import vibe.core.log;
import vibe.internal.async : Waitable, asyncAwaitAny;
import vibe.internal.list : StackSList;

import eventcore.core : NativeEventDriver, eventDriver;
Expand Down Expand Up @@ -140,7 +141,6 @@ final class ThreadLocalWaiter(bool EVENT_TRIGGERED) {
bool wait(bool interruptible)(Duration timeout, scope bool delegate() @safe nothrow exit_condition = null)
@safe {
import core.time : MonoTime;
import vibe.internal.async : Waitable, asyncAwaitAny;

TaskWaiter waiter_store;
TaskWaiter* waiter = () @trusted { return &waiter_store; } ();
Expand Down
4 changes: 0 additions & 4 deletions source/vibe/core/sync.d
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,6 @@ unittest {
Note: the ownership can be shared between multiple fibers of the same thread.
*/
struct LocalManualEvent {
import core.thread : Thread;
import vibe.internal.async : Waitable, asyncAwait, asyncAwaitUninterruptible, asyncAwaitAny;

@safe:

private {
Expand Down Expand Up @@ -1347,7 +1344,6 @@ unittest { // ensure that LocalManualEvent behaves correctly after being copied
*/
struct ManualEvent {
import core.thread : Thread;
import vibe.internal.async : Waitable, asyncAwait, asyncAwaitUninterruptible, asyncAwaitAny;
import vibe.internal.list : StackSList;

@safe:
Expand Down
Loading