这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.

Conversation

@grantland
Copy link
Member

  • null
  • true|false
  • cancelled

resolves #82

@grantland
Copy link
Member Author

Depends on #84

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of these, since in different languages they translate to different things, maybe rename to TASK_TRUE, etc?

@nlutsenko nlutsenko assigned grantland and unassigned nlutsenko Oct 6, 2015
@grantland grantland assigned nlutsenko and unassigned grantland Oct 14, 2015
@grantland
Copy link
Member Author

@nlutsenko updated

@nlutsenko nlutsenko assigned grantland and unassigned nlutsenko Oct 15, 2015
@nlutsenko
Copy link
Member

Looks great!

Offtopic: Forgive me my lack of Java knowledge - what does generic type ? mean?

@grantland
Copy link
Member Author

? are wildcard generics. Usage-wise Task<?> is the same as Task, but it explicitly shows that you're purposely allowing any generic type as opposed to it being a mistake.

* `null`
* `true`|`false`
* cancelled
grantland added a commit that referenced this pull request Oct 15, 2015
@grantland grantland merged commit de55d7a into master Oct 15, 2015
@grantland grantland deleted the grantland.cache branch October 15, 2015 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return a immutable singleton for Task.forResult(null) and Task.cancelled()

4 participants