- Feche o VSCode e o simulador iOS
- Rode o script "pod_clean.sh" na raiz do projeto
- Abra o VSCode e o simulador iOS
- Rode o projeto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:math'; | |
import 'package:stream_transform/stream_transform.dart'; | |
StreamController<int> controller = StreamController<int>.broadcast(); | |
void probe(int id, int delay) { | |
print("Submitted(ID: $id; delay: $delay)"); | |
controller.add(id); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:http/http.dart' as http; | |
import 'package:http_parser/http_parser.dart'; | |
Future<http.Response> uploadFile( | |
String url, | |
Map<String, String> headers, | |
Map<String, String> fields, | |
String fileName, | |
List<int> fileBytes) async { | |
var request = new http.MultipartRequest("POST", Uri.parse(url)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const expect = require('chai').expect; | |
const EventEmitter = require('events'); | |
const rxjs = require('rxjs'); | |
const { ajax } = require('rxjs/ajax'); | |
const { debounce, debounceTime, distinctUntilChanged, switchMap, tap } = require('rxjs/operators'); | |
describe('A emitter', function () { | |
it('should emit something', async function (done) { |