Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future API fixes #1245

Merged
merged 15 commits into from
Mar 16, 2017
Merged

Future API fixes #1245

merged 15 commits into from
Mar 16, 2017

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Feb 3, 2017

This PR introduces the following changes:

  • isSucceeded(), isFailed(), result() and error() methods of Future<T> now synchronously wait until an operation is completed.
  • Future<T> now can be implicitly (and synchronously) converted to T.
  • Particle.publish() now returns Future<bool> and can be used in a backward-compatible way.
  • HAL_Timer_Milliseconds() overflow is now properly handled when checking for expired ACK handlers (WITH_ACK flag functionality).
  • Added CompletionHandlerList class that can be used to invoke several completion handlers at once (@avtolstoy).
  • Renamed system's Promise class to SystemPromise to avoid conflicts with application's Promise in the global namespace.
  • Code size optimizations and unit tests.

Doneness:

  • Contributor has signed CLA
  • Problem and Solution clearly stated
  • Code peer reviewed
  • API tests compiled
  • Run unit/integration/application tests on device
  • Add documentation
  • Add to CHANGELOG.md after merging (add links to docs and issues)

Features

  • [PR #1245] Particle.publish() now able to use Future API

@sergeuz sergeuz added this to the 0.7.0 milestone Feb 3, 2017
@m-mcgowan m-mcgowan self-requested a review March 1, 2017 11:21
@avtolstoy avtolstoy mentioned this pull request Mar 6, 2017
7 tasks
 Conflicts:
	wiring/inc/spark_wiring_cloud.h
	wiring/src/spark_wiring_cloud.cpp
@technobly technobly removed the request for review from m-mcgowan March 16, 2017 03:45
@technobly technobly merged commit 677a36a into develop Mar 16, 2017
@technobly technobly deleted the fix/futures branch March 16, 2017 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants