列表 第页
我在端到端测试,第一次运行。我试图消化别人的量角器测试。问题:有很多 browser.driver.sleep 的,这似乎是脆弱的。目标:不使用 browser.driver.sleep 问:什么是 browser.driver.sleep 更好的方法?类似的承诺或某事我不知道笑那么脆弱? VAR配置=要求('....阅读全文
有一种等效于的Thread.Sleep()在Access的VBA?解决方案 声明子睡眠库KERNEL32别名睡眠_(BYVAL dwMilliseconds长)使用下面的语法来调用休眠功能:子睡眠()睡眠1000实现1秒的延迟结束小组Is there an equivalent to Thread.Sleep...阅读全文
sleep() 是 Thread 类的静态方法.从多个线程调用时它是如何工作的.以及它如何确定当前的执行线程.?sleep() is a static method of class Thread. How does it work when called from multiple threads. and how...阅读全文
我知道 Thread.sleep代码块一个线程。 但是否 Task.Delay 也阻止?还是只是像定时器,它使用一个线程用于所有的回调(当不重叠)?But does Task.Delay also block? Or is it just like Timer which uses one thread for a...阅读全文
我要显示在ImageView的其他图像在3个第二,翻转旧图片后。在code:I want to show other image in ImageView within 3 second, after that rollover old image. The code:OnClickListener oc = new...阅读全文
在Android框架,如果 的TextView 的 的setText() 方法被调用,它返回的 Thead.sleep() 叫的,那么屏幕该设备不会显示给定的文本后才睡眠()返回。为什么呢?In the Android framework, if a TextView's setText() method is...阅读全文
我有一个关于线程在C#中的一个小问题。出于某种原因,我的线速度从32毫秒延迟16ms的延迟当我打开浏览器,当我关闭浏览器就GOED回为32ms。我使用Thread.sleep代码(1000至1060年)的延迟。有人可以解释为什么发生这种情况,也许提出一个可行的解决方案?使用系统;使用System.Collectio...阅读全文
我正在为Android记忆游戏,我有一个问题。当用户点击第二个图像 - 如果图像是不一样的我希望第二个图像显示1 2秒I'm working on a memory game for Android and I'm having a problem. When the user taps the second ima...阅读全文
我有另一个线程轮询用户输入。此线是主线程,并且可以在一个时间入睡分钟。如果用户点击想退出也可能是2+分钟前控制台窗口关闭这可能会觉得没有反应。I have another thread polling user input. This thread is the main thread and can sleep m...阅读全文
我在写基于计谋/睡眠模式的网络结合的应用。 I'm writing a network-bound application based on await/sleep paradigm. 有时候,连接错误发生,并且在我的经验是值得等待一段时间,不是重试操作。Sometimes, connection errors...阅读全文
我搜索了这个问题,但没有看到一个答案。如果是重复的,我会很乐意将其关闭。 I searched this question but didn't see an answer. If it is a duplicate I'll gladly close it. 我目前正在做一个技术的一些性能评价,看到一些相当令人难...阅读全文
有很多人说用例子定时器而不是 Thread.sleep代码(...)在的Azure工作者角色。没有probs这一点。There's plenty of examples of people saying to use a Timer instead of Thread.Sleep(...) in an Azure W...阅读全文
在我的.net应用程序我有重播一系列的传感器事件。所以,我创建了一个线程触发这些事件(通常大约每1 - 4毫秒)。我在这个线程实现一个循环,并使用 Thread.sleep代码(...)把该线程的事件之间睡觉。基本上,它看起来是这样的:无效RunThread(){。VAR ITER = GetAllEvents()...阅读全文
我要放2操作之间的延迟,而不忙于线程I want to put a delay between 2 operations without keeping busy the threadworkA();Thread.Sleep(1000);workB();线程必须workA后退出,一些延迟后执行workB(也许在一个新...阅读全文
据我所知,在Windows服务中,最好是使用定时器,而不是 Thread.sleep代码(超时)。然而,在所有code的例子我能找到那名装卸工人的Azure在互联网上,这是 Thread.sleep代码(超时)这是用来代替定时器。I understand that in a Windows service, it i...阅读全文
我有2个线程(现在的)一个应用程序,但似乎功能Thread.sleep()方法不起作用很好。它睡觉的线程,但它需要更多的时间(例 - 我要睡觉了它5毫秒,它休眠0,3s以上)。这里是code:I have an app with 2 threads (now), but it seems that function...阅读全文
的Thread.Sleep()号决议1变化到15.6ms 鉴于这种控制台应用程序:Given this console app:class Program{static void Main(){int outer = 100;int inner = 100;Stopwatch sw = new Stopwa...阅读全文
了Thread.Sleep 似乎并没有在.NET的Windows应用商店的应用程序支持。 Thread.Sleep doesn't seem to be supported in .NET for Windows Store apps. 例如,本System.Threading.Thread.Sleep(1000...阅读全文