Home
last modified time | relevance | path

Searched refs:Future (Results 1 – 25 of 1020) sorted by relevance

12345678910>>...41

/third_party/python/Doc/library/
Dasyncio-future.rst15 *Future* objects are used to bridge **low-level callback-based code**
19 Future Functions
26 * an instance of :class:`asyncio.Future`,
28 * a Future-like object with a ``_asyncio_future_blocking``
38 * *obj* argument as is, if *obj* is a :class:`Future`,
39 a :class:`Task`, or a Future-like object (:func:`isfuture`
64 Deprecation warning is emitted if *obj* is not a Future-like object
70 Wrap a :class:`concurrent.futures.Future` object in a
71 :class:`asyncio.Future` object.
74 Deprecation warning is emitted if *future* is not a Future-like object
[all …]
/third_party/flutter/flutter/dev/devicelab/lib/framework/
Dadb.dart42 Future<void> chooseWorkingDevice();
49 Future<Device> get workingDevice;
52 Future<List<String>> discoverDevices();
55 Future<Map<String, HealthCheckResult>> checkDevices();
58 Future<void> performPreflightTasks();
67 Future<bool> isAwake();
70 Future<bool> isAsleep();
73 Future<void> wakeUp();
76 Future<void> sendToSleep();
79 Future<void> togglePower();
[all …]
Dapk_utils.dart14 Future<void> runProjectTest(Future<void> testFunction(FlutterProject project)) async {
26 Future<void> runPluginProjectTest(Future<void> testFunction(FlutterPluginProject pluginProject)) as…
38 Future<Iterable<String>> getFilesInApk(String apk) async {
55 Future<Iterable<String>> getFilesInAppBundle(String bundle) {
60 Future<Iterable<String>> getFilesInAar(String aar) {
115 Future<void> _extractApk() async {
129 Future<String> _findDexDump() async {
153 Future<bool> containsClass(String className) async {
173 Future<String> getAndroidManifest(String apk) {
180 Future<void> checkApkContainsClasses(File apk, List<String> classes) async {
[all …]
/third_party/flutter/flutter/packages/flutter_tools/test/src/
Dtestbed.dart146 Future<void> ensureAnalyticsSent() {
198 Future<bool> Function(Uri url, String scheme, String realm) f) {}
202 Future<bool> Function(String host, int port, String scheme, String realm)
213 Future<HttpClientRequest> delete(String host, int port, String path) async {
218 Future<HttpClientRequest> deleteUrl(Uri url) async {
226 Future<HttpClientRequest> get(String host, int port, String path) async {
231 Future<HttpClientRequest> getUrl(Uri url) async {
236 Future<HttpClientRequest> head(String host, int port, String path) async {
241 Future<HttpClientRequest> headUrl(Uri url) async {
246 Future<HttpClientRequest> open(String method, String host, int port, String path) async {
[all …]
Dmocks.dart47 Future<ApplicationPackage> getPackageForPlatform(
166 Future<Process> start(
181 return Future<Process>.value(processFactory(command));
189 Future<int> exitCode,
193 }) : exitCode = exitCode ?? Future<int>.value(0),
200 final Future<int> exitCode;
216 Future<int> exitCode,
220 }) : exitCode = exitCode ?? Future<int>.value(0),
227 final Future<int> exitCode;
247 Future<void> showPrompt(String prompt, List<String> outputLines) async {
[all …]
/third_party/flutter/flutter/packages/flutter_tools/lib/src/
Dresident_runner.dart52 static Future<FlutterDevice> create(
114 Future<void> connect({
135 Future<void> refreshViews() async {
137 return Future<void>.value(null);
138 final List<Future<void>> futures = <Future<void>>[];
141 await Future.wait(futures);
160 Future<void> getVMs() async {
165 Future<void> exitApps() async {
173 final List<Future<void>> futures = <Future<void>>[];
194 await Future.wait(futures).timeout(const Duration(seconds: 2), onTimeout: () => <void>[]);
[all …]
Drun_hot.dart34 Future<bool> setupHotRestart() async {
39 Future<void> runPreShutdownOperations() async {
96 Future<void> _reloadSourcesService(
111 Future<void> _restartService({ bool pause = false }) async {
122 Future<String> _compileExpressionService(
146 Future<int> attach({
238 Future<int> run({
269 Future<List<Uri>> _initDevFS() async {
283 Future<UpdateFSReport> _updateDevFS({ bool fullRestart = false }) async {
324 Future<void> _cleanupDevFS() async {
[all …]
Dvmservice.dart27 typedef WebSocketConnector = Future<io.WebSocket> Function(String url, {io.CompressionOptions compr…
30 typedef _OpenChannel = Future<StreamChannel<String>> Function(Uri uri, {io.CompressionOptions compr…
45 typedef ReloadSources = Future<void> Function(
51 typedef Restart = Future<void> Function({ bool pause });
53 typedef CompileExpression = Future<String> Function(
65 Future<StreamChannel<String>> _defaultOpenChannel(Uri uri, {io.CompressionOptions compression = io.…
70 Future<void> handleError(dynamic e) async {
78 await Future<void>.delayed(delay);
252 static Future<VMService> connect(
286 Future<void> get done async {
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/foundation/
Dsynchronous_future.dart7 /// A [Future] whose [then] implementation calls the callback immediately.
9 /// This is similar to [new Future.value], except that the value is available in
17 class SynchronousFuture<T> implements Future<T> {
20 /// See also [new Future.value].
34 Future<T> catchError(Function onError, { bool test(dynamic error) }) => Completer<T>().future;
37 Future<E> then<E>(dynamic f(T value), { Function onError }) {
39 if (result is Future<E>)
45 Future<T> timeout(Duration timeLimit, { dynamic onTimeout() }) {
46 return Future<T>.value(_value).timeout(timeLimit, onTimeout: onTimeout);
50 Future<T> whenComplete(dynamic action()) {
[all …]
/third_party/flutter/flutter/packages/fuchsia_remote_debug_protocol/test/src/dart/
Ddart_vm_test.dart20 Future<json_rpc.Peer> mockServiceFunction(
24 return Future<json_rpc.Peer>(() => null);
34 Future<json_rpc.Peer> mockServiceFunction(
38 return Future<json_rpc.Peer>(() => peer);
93 Future<json_rpc.Peer> mockVmConnectionFunction(
98 Future<Map<String, dynamic>>(() => flutterViewCannedResponses));
99 return Future<json_rpc.Peer>(() => mockPeer);
151 Future<json_rpc.Peer> mockVmConnectionFunction(
156 Future<Map<String, dynamic>>(() => flutterViewCannedResponses));
157 return Future<json_rpc.Peer>(() => mockPeer);
[all …]
/third_party/rust/crates/tracing/tracing-futures/src/executor/
Dfutures_01.rs4 Future,
20 F: Future<Item = (), Error = ()>,
31 F: Future<Item = (), Error = ()>,
46 use futures_01::Future;
58 future: Box<dyn Future<Error = (), Item = ()> + 'static + Send>, in spawn()
90 F: Future<Item = (), Error = ()> + Send + 'static, in spawn()
114 F: Send + 'static + Future<Item = R, Error = E>, in block_on()
141 F: Future<Item = (), Error = ()> + 'static, in spawn()
174 F: 'static + Future<Item = R, Error = E>, in block_on()
202 future: Box<dyn Future<Error = (), Item = ()> + 'static + Send>, in spawn()
[all …]
/third_party/ejdb/src/bindings/ejdb2_flutter/lib/
Dejdb2_flutter.dart84 Future<EJDB2> open() => EJDB2._open(this);
105 return Future<T>.error(EJDB2Error(err.code, err.message), s);
107 return Future<T>.error(err, s);
259 Future<void> executeTouch() {
285 Future<int> executeScalarInt() => _mc.invokeMethod('executeScalarInt',
290 Future<List<JBDOC>> list([int limitArg]) async {
309 Future<Optional<JBDOC>> first() async {
315 Future<JBDOC> firstRequired() async {
320 return Future.error(EJDB2Error.notFound());
325 Future<List<JBDOC>> firstN(int n) => list(n);
[all …]
/third_party/flutter/flutter/packages/flutter_tools/test/integration.shard/
Dtest_driver.dart78 Future<void> _setupProcess(
123 Future<void> connectToVmService({ bool pauseOnExceptions = false }) async {
135 await Future.wait(<Future<Success>>[
149 Future<int> quit() => _killGracefully();
151 Future<int> _killGracefully() async {
159 Future<int> _killForcefully() {
166 Future<String> _getFlutterIsolateId() async {
176 Future<Isolate> _getFlutterIsolate() async {
190 Future<void> breakAt(Uri uri, int line) async {
195 Future<void> addBreakpoint(Uri uri, int line) async {
[all …]
/third_party/flutter/flutter/packages/flutter/test/services/
Dfake_platform_views.dart77 Future<dynamic> _onMethodCall(MethodCall call) {
92 return Future<dynamic>.sync(() => null);
95 Future<dynamic> _create(MethodCall call) async {
122 return Future<int>.sync(() => textureId);
125 Future<dynamic> _dispose(MethodCall call) {
135 return Future<dynamic>.sync(() => null);
138 Future<dynamic> _resize(MethodCall call) async {
155 return Future<dynamic>.sync(() => null);
158 Future<dynamic> _touch(MethodCall call) {
177 return Future<dynamic>.sync(() => null);
[all …]
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/fuchsia/
Dfuchsia_device_test.dart171 Future<ProcessResult>.value(mockProcessResult));
185 Future<ProcessResult>.value(emptyStdoutProcessResult));
236 .thenAnswer((Invocation _) => Future<Process>.value(mockProcess));
339 Future<Uri> findUri(
364 .thenAnswer((Invocation invocation) => Future<void>.value(null));
366 .thenAnswer((Invocation invocation) => Future<void>.value(null));
386 final Future<Uri> uri = findUri(<MockFlutterView>[
395 final Future<Uri> uri = findUri(<MockFlutterView>[
414 Future<LaunchResult> setupAndStartApp({
582 (Invocation invocation) => Future<ProcessResult>.value(mockSuccessProcessResult));
[all …]
/third_party/flutter/flutter/packages/flutter_tools/lib/src/linux/
Dlinux_device.dart41 Future<bool> installApp(ApplicationPackage app) async => true;
46 Future<bool> isAppInstalled(ApplicationPackage app) async => true;
51 Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => true;
54 Future<bool> get isLocalEmulator async => false;
57 Future<String> get emulatorId async => null;
69 Future<String> get sdkNameAndVersion async => os.name;
72 Future<LaunchResult> startApp(
111 Future<bool> stopApp(covariant LinuxApp app) async {
116 Future<TargetPlatform> get targetPlatform async => TargetPlatform.linux_x64;
121 Future<bool> uninstallApp(ApplicationPackage app) async => true;
[all …]
/third_party/ejdb/src/bindings/ejdb2_dart/lib/
Dejdb2_dart.dart138 Future<Optional<JBDOC>> first({void explainCallback(String log)?}) async {
146 Future<JBDOC> firstRequired({void explainCallback(String log)?}) async {
154 Future<List<JBDOC>> firstN(int n, {void explainCallback(String log)?}) async {
173 Future<int> scalarInt({void explainCallback(String log)?}) {
273 static Future<EJDB2> open(String path,
342 Future<void> close() {
345 return Future.value();
363 Future<int> put(String collection, dynamic json, [int? id]) {
366 return Future.error(EJDB2Error.invalidState());
389 Future<void> patch(String collection, dynamic patchObj, int id, [bool upsert = false]) {
[all …]
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/commands/
Dupgrade_test.dart32 when(process.exitCode).thenAnswer((_) => Future<int>.value(exitCode));
59 return Future<Process>.value(createMockProcess());
65 final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
75 final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
88 final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
100 final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
112 final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
195 Future<void> verifyUpstreamConfigured() async {}
198 Future<bool> hasUncomittedChanges() async => willHaveUncomittedChanges;
201 Future<void> resetChanges(GitTagVersion gitTagVersion) async {}
[all …]
Dversion_test.dart37 …final Future<void> runCommand = createTestCommandRunner(command).run(<String>['version', version]);
38 await Future.wait<void>(<Future<void>>[runCommand]);
47 …final Future<void> runCommand = createTestCommandRunner(command).run(<String>['version', version]);
48 await Future.wait<void>(<Future<void>>[runCommand]);
57 …final Future<void> runCommand = createTestCommandRunner(command).run(<String>['version', '--force'…
58 await Future.wait<void>(<Future<void>>[runCommand]);
87 Future<ProcessResult> run(
132 Future<Process> start(
/third_party/flutter/flutter/packages/flutter/test/painting/
Dmocks_for_image_cache.dart35 Future<int> obtainKey(ImageConfiguration configuration) {
36 return Future<int>.value(key);
55 …return OneFrameImageStreamCompleter(Future<ImageInfo>.sync(() => Future<ImageInfo>.error('loading …
59 Future<ImageInfo> extractOneFrame(ImageStream stream) {
81 Future<ByteData> toByteData({ ImageByteFormat format = ImageByteFormat.rawRgba }) {
93 Future<ErrorImageProvider> obtainKey(ImageConfiguration configuration) {
105 Future<ObtainKeyErrorImageProvider> obtainKey(ImageConfiguration configuration) {
117 Future<LoadErrorImageProvider> obtainKey(ImageConfiguration configuration) {
131 Future<LoadErrorCompleterImageProvider> obtainKey(ImageConfiguration configuration) {
/third_party/flutter/flutter/packages/flutter_tools/lib/src/macos/
Dmacos_device.dart42 Future<bool> installApp(ApplicationPackage app) async => true;
47 Future<bool> isAppInstalled(ApplicationPackage app) async => true;
52 Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => true;
55 Future<bool> get isLocalEmulator async => false;
58 Future<String> get emulatorId async => null;
70 Future<String> get sdkNameAndVersion async => os.name;
73 Future<LaunchResult> startApp(
128 Future<bool> stopApp(covariant MacOSApp app) async {
133 Future<TargetPlatform> get targetPlatform async => TargetPlatform.darwin_x64;
138 Future<bool> uninstallApp(ApplicationPackage app) async => true;
[all …]
/third_party/flutter/flutter/packages/flutter_tools/lib/src/web/
Dweb_device.dart65 Future<bool> installApp(ApplicationPackage app) async => true;
68 Future<bool> isAppInstalled(ApplicationPackage app) async => true;
71 Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => true;
74 Future<bool> get isLocalEmulator async => false;
77 Future<String> get emulatorId async => null;
89 Future<String> get sdkNameAndVersion async {
119 Future<LaunchResult> startApp(
135 Future<bool> stopApp(ApplicationPackage app) async {
140 Future<TargetPlatform> get targetPlatform async => TargetPlatform.web_javascript;
143 Future<bool> uninstallApp(ApplicationPackage app) async => true;
[all …]
/third_party/flutter/flutter/packages/flutter_tools/lib/src/tester/
Dflutter_tester.dart56 Future<bool> get isLocalEmulator async => false;
59 Future<String> get emulatorId async => null;
68 Future<String> get sdkNameAndVersion async {
74 Future<TargetPlatform> get targetPlatform async => TargetPlatform.tester;
86 Future<bool> installApp(ApplicationPackage app) async => true;
89 Future<bool> isAppInstalled(ApplicationPackage app) async => false;
92 Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => false;
101 Future<LaunchResult> startApp(
196 Future<bool> stopApp(ApplicationPackage app) async {
203 Future<bool> uninstallApp(ApplicationPackage app) async => true;
[all …]
/third_party/flutter/flutter/dev/integration_tests/channels/lib/src/
Dmethod_calls.dart10 Future<TestStepResult> methodCallJsonSuccessHandshake(dynamic payload) async {
17 Future<TestStepResult> methodCallJsonErrorHandshake(dynamic payload) async {
23 Future<TestStepResult> methodCallJsonNotImplementedHandshake() async {
29 Future<TestStepResult> methodCallStandardSuccessHandshake(
39 Future<TestStepResult> methodCallStandardErrorHandshake(dynamic payload) async {
48 Future<TestStepResult> methodCallStandardNotImplementedHandshake() async {
57 Future<TestStepResult> _methodCallSuccessHandshake(
84 Future<TestStepResult> _methodCallErrorHandshake(
114 Future<TestStepResult> _methodCallNotImplementedHandshake(
/third_party/flutter/flutter/packages/flutter_tools/lib/src/windows/
Dwindows_device.dart43 Future<bool> installApp(ApplicationPackage app) async => true;
48 Future<bool> isAppInstalled(ApplicationPackage app) async => true;
53 Future<bool> isLatestBuildInstalled(ApplicationPackage app) async => true;
56 Future<bool> get isLocalEmulator async => false;
59 Future<String> get emulatorId async => null;
71 Future<String> get sdkNameAndVersion async => os.name;
74 Future<LaunchResult> startApp(
112 Future<bool> stopApp(covariant WindowsApp app) async {
123 Future<TargetPlatform> get targetPlatform async => TargetPlatform.windows_x64;
128 Future<bool> uninstallApp(ApplicationPackage app) async => true;
[all …]

12345678910>>...41