51ea42537a
Also add a sample for calling Dart functions which return/accept futures. Change-Id: I932d0577709f4e068ccd3212797751ecb347c4f9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408281 Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
13 lines
382 B
Dart
13 lines
382 B
Dart
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
void main(List<String> args) {
|
|
throw 'Unimplemented';
|
|
}
|
|
|
|
@pragma('vm:entry-point', 'call')
|
|
void printValue(String value) {
|
|
print('program2 received: $value');
|
|
}
|